fix and update
This commit is contained in:
@@ -1127,6 +1127,37 @@ export default function LoginPage() {
|
||||
|
||||
) : null}
|
||||
|
||||
{methods.some((method) => method.kind === 'password') ? (
|
||||
|
||||
<>
|
||||
|
||||
<p className="px-1 pt-2 text-xs uppercase tracking-wide text-[#7d818d]">или</p>
|
||||
|
||||
<button
|
||||
|
||||
type="button"
|
||||
|
||||
disabled={isSubmitting}
|
||||
|
||||
onClick={() => {
|
||||
const passwordMethod = methods.find((method) => method.kind === 'password');
|
||||
if (passwordMethod) void chooseMethod(passwordMethod);
|
||||
}}
|
||||
|
||||
className="flex w-full items-center gap-3 rounded-[16px] bg-[#2a2c36] p-3 text-left hover:bg-[#33353f] disabled:opacity-50"
|
||||
|
||||
>
|
||||
|
||||
<KeyRound className="h-5 w-5 text-[#b9bdc9]" />
|
||||
|
||||
<span className="text-sm">Войти с паролем</span>
|
||||
|
||||
</button>
|
||||
|
||||
</>
|
||||
|
||||
) : null}
|
||||
|
||||
</div>
|
||||
|
||||
{totpChallengeToken ? (
|
||||
|
||||
Reference in New Issue
Block a user