fix(auth): preserve MFA continuation through field hydration
This commit is contained in:
1 parent
24f15e8b78
commit
a077515336
5 files changed
+79
-3
No files matched your search
@@ -13,6 +13,7 @@ component TwoFactorChallenge {
|
||||
description = "Choose a verification method and enter the code."
|
||||
submitLabel = "Verify"
|
||||
recoveryHref = "/recover"
|
||||
signInHref = "/login"
|
||||
color = "primary"
|
||||
size = "md"
|
||||
class = ""
|
||||
@@ -47,6 +48,7 @@ component TwoFactorChallenge {
|
||||
<p data-error="_form" role="alert" class="m-0 hidden rounded-[var(--wrn-radius-sm)] bg-[color-mix(in_srgb,var(--wrn-color-danger)_10%,transparent)] p-3 text-sm text-[var(--wrn-color-danger)]"></p>
|
||||
<Button type="submit" label="{submitLabel}" variant="solid" color="{color}" size="{size}" fullWidth="true" />
|
||||
</form>
|
||||
<a href='{signInHref}' data-auth-mfa-restart hidden class="mt-4 text-sm text-[var(--wrn-color-primary)] underline">Sign-in verification expired. Back to sign in</a>
|
||||
<a href='{recoveryHref}' class="mt-4 inline-flex text-sm text-[var(--wrn-color-primary)] hover:underline">Account recovery options</a>
|
||||
</section>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user