Craig100
02/07/2025, 1:12 PMloginModel.RedirectUrl
provided. I initially thought it was because there was some detection of 2FA providers in the login page, but I tried commenting all that out and it still doesn't respect the redirect and unless there's something in the returned model.
I tried utilising the returned ViewData but it doesn't work, it just comes back to the log in form because it's hasn't logged itself in, so attempting to get to the 2FA page fails.
@if (ViewData["TwoFactorRequired"]?.ToString() == "UmbracoAppAuthenticator") {
<script>
window.location.href="/2FAPage";
</script>
}
Any ideas gratefully received.
Thanks.Craig100
02/10/2025, 2:04 PMCraig100
02/10/2025, 9:44 PM@using (Html.BeginUmbracoForm<UmbTwoFactorLoginController>(nameof(UmbTwoFactorLoginController.Verify2FACode))) {
<text>
<input type="hidden" name="returnUrl" value="/secure/dashboard"/>