Skip to content
Snippets Groups Projects
Unverified Commit df3bbfb4 authored by sn0w's avatar sn0w Committed by GitHub
Browse files

fix(client): correctly handle MiAuth URLs with query string (#8772)

parent 0263a783
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ import MkSignin from '@/components/signin.vue';
import MkButton from '@/components/ui/button.vue';
import * as os from '@/os';
import { login } from '@/account';
import { appendQuery, query } from '@/scripts/url';
export default defineComponent({
components: {
......@@ -82,7 +83,9 @@ export default defineComponent({
this.state = 'accepted';
if (this.callback) {
location.href = `${this.callback}?session=${this.session}`;
location.href = appendQuery(this.callback, query({
session: this.session
}));
}
},
deny() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment