mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:13:22 +00:00
rm logs
This commit is contained in:
@@ -52,7 +52,14 @@ export default function PasswordForm({ loginName }: Props) {
|
||||
|
||||
function submitPasswordAndContinue(value: Inputs): Promise<boolean | void> {
|
||||
return submitPassword(value).then((resp: any) => {
|
||||
return router.push(`/accounts`);
|
||||
if (resp.factors && !resp.factors.passwordless) {
|
||||
return router.push(
|
||||
`/passkey/add?` +
|
||||
new URLSearchParams({ loginName: resp.factors.user.loginName })
|
||||
);
|
||||
} else {
|
||||
return router.push(`/accounts`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user