mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-21 04:16:38 +00:00
Merge branch 'dev' into feat/internal-user-passkey-support
This commit is contained in:
@@ -48,6 +48,10 @@ export default function LocaleSwitcher() {
|
||||
{
|
||||
value: 'zh-CN',
|
||||
label: '简体中文'
|
||||
},
|
||||
{
|
||||
value: 'ko-KR',
|
||||
label: '한국어'
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -210,6 +210,12 @@ export default function LoginForm({ redirect, onLogin, idps }: LoginFormProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (data?.twoFactorSetupRequired) {
|
||||
const setupUrl = `/auth/2fa/setup?email=${encodeURIComponent(email)}${redirect ? `&redirect=${encodeURIComponent(redirect)}` : ''}`;
|
||||
router.push(setupUrl);
|
||||
return;
|
||||
}
|
||||
|
||||
if (onLogin) {
|
||||
await onLogin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user