fix: allow multiple accounts on same server (#1092)
This commit is contained in:
parent
190caf0437
commit
88ac29ea14
2 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,8 @@ let knownServers = $ref<string[]>([])
|
|||
let autocompleteIndex = $ref(0)
|
||||
let autocompleteShow = $ref(false)
|
||||
|
||||
const users = useUsers()
|
||||
|
||||
async function oauth() {
|
||||
if (busy)
|
||||
return
|
||||
|
@ -28,6 +30,7 @@ async function oauth() {
|
|||
location.href = await (globalThis.$fetch as any)(`/api/${server || publicServer.value}/login`, {
|
||||
method: 'POST',
|
||||
body: {
|
||||
force_login: users.value.some(u => u.server === server),
|
||||
origin: location.origin,
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue