mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 16:43:01 +00:00
rm alternative pwd btn
This commit is contained in:
@@ -208,37 +208,6 @@ export default function VerifyU2F({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="mt-8 flex w-full flex-row items-center">
|
<div className="mt-8 flex w-full flex-row items-center">
|
||||||
{altPassword ? (
|
|
||||||
<Button
|
|
||||||
type="button"
|
|
||||||
variant={ButtonVariants.Secondary}
|
|
||||||
onClick={() => {
|
|
||||||
const params: any = { alt: "true" };
|
|
||||||
|
|
||||||
if (loginName) {
|
|
||||||
params.loginName = loginName;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sessionId) {
|
|
||||||
params.sessionId = sessionId;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (authRequestId) {
|
|
||||||
params.authRequestId = authRequestId;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (organization) {
|
|
||||||
params.organization = organization;
|
|
||||||
}
|
|
||||||
|
|
||||||
return router.push(
|
|
||||||
"/password?" + new URLSearchParams(params) // alt is set because password is requested as alternative auth method, so passwordless prompt can be escaped
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
use password
|
|
||||||
</Button>
|
|
||||||
) : (
|
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant={ButtonVariants.Secondary}
|
variant={ButtonVariants.Secondary}
|
||||||
@@ -246,7 +215,6 @@ export default function VerifyU2F({
|
|||||||
>
|
>
|
||||||
back
|
back
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
|
||||||
|
|
||||||
<span className="flex-grow"></span>
|
<span className="flex-grow"></span>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user