Enter Key for Quick Login (#513)
This commit was merged in pull request #513.
This commit is contained in:
@@ -1031,7 +1031,13 @@ export function Auth({
|
||||
</div>
|
||||
)}
|
||||
{!webviewAuthSuccess && totpRequired && (
|
||||
<div className="flex flex-col gap-5">
|
||||
<form
|
||||
className="flex flex-col gap-5"
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
handleTOTPVerification();
|
||||
}}
|
||||
>
|
||||
<div className="mb-6 text-center">
|
||||
<h2 className="text-xl font-bold mb-1">
|
||||
{t("auth.twoFactorAuth")}
|
||||
@@ -1061,10 +1067,9 @@ export function Auth({
|
||||
</div>
|
||||
|
||||
<Button
|
||||
type="button"
|
||||
type="submit"
|
||||
className="w-full h-11 text-base font-semibold"
|
||||
disabled={totpLoading || totpCode.length < 6}
|
||||
onClick={handleTOTPVerification}
|
||||
>
|
||||
{totpLoading ? Spinner : t("auth.verifyCode")}
|
||||
</Button>
|
||||
@@ -1082,7 +1087,7 @@ export function Auth({
|
||||
>
|
||||
{t("common.cancel")}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
)}
|
||||
|
||||
{!webviewAuthSuccess &&
|
||||
|
||||
Reference in New Issue
Block a user