mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
verify passcode on the OAuth 2.0 callback page if user enable 2FA
This commit is contained in:
+3
-2
@@ -191,11 +191,12 @@ export const useRootStore = defineStore('root', () => {
|
||||
});
|
||||
}
|
||||
|
||||
function authorizeOAuth2({ password, token }: { password?: string, token: string }): Promise<AuthResponse> {
|
||||
function authorizeOAuth2({ password, passcode, token }: { password?: string, passcode?: string, token: string }): Promise<AuthResponse> {
|
||||
return new Promise((resolve, reject) => {
|
||||
services.authorizeOAuth2({
|
||||
req: {
|
||||
password
|
||||
password,
|
||||
passcode
|
||||
},
|
||||
token
|
||||
}).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user