mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
fix(client): correctly handle MiAuth URLs with query string (#8772)
This commit is contained in:
parent
0263a783a6
commit
df3bbfb416
@ -42,6 +42,7 @@ import MkSignin from '@/components/signin.vue';
|
|||||||
import MkButton from '@/components/ui/button.vue';
|
import MkButton from '@/components/ui/button.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { login } from '@/account';
|
import { login } from '@/account';
|
||||||
|
import { appendQuery, query } from '@/scripts/url';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
@ -82,7 +83,9 @@ export default defineComponent({
|
|||||||
|
|
||||||
this.state = 'accepted';
|
this.state = 'accepted';
|
||||||
if (this.callback) {
|
if (this.callback) {
|
||||||
location.href = `${this.callback}?session=${this.session}`;
|
location.href = appendQuery(this.callback, query({
|
||||||
|
session: this.session
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deny() {
|
deny() {
|
||||||
|
Loading…
Reference in New Issue
Block a user