mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: gen code generator; some unit tests
This commit is contained in:
parent
33a996e777
commit
918f920d57
8 changed files with 86 additions and 178 deletions
|
@ -167,9 +167,12 @@ async function handlePasskeyLogin() {
|
|||
})
|
||||
|
||||
if (r.token) {
|
||||
const cookies = useCookies(['nginx-ui-2fa'])
|
||||
const next = (route.query?.next || '').toString() || '/'
|
||||
|
||||
passkeyLogin(asseResp.rawId, r.token)
|
||||
secureSessionId.value = r.secure_session_id
|
||||
cookies.set('secure_session_id', r.secure_session_id, { maxAge: 60 * 3 })
|
||||
|
||||
await router.push(next)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue