verify passcode on the OAuth 2.0 callback page if user enable 2FA

This commit is contained in:
MaysWind
2025-10-26 15:18:40 +08:00
parent c854dbaab4
commit fd4036f0c8
22 changed files with 73 additions and 4 deletions
+3 -2
View File
@@ -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 => {