mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 16:38:37 +00:00
Fix broken redirects in website login
This commit is contained in:
parent
e061987165
commit
0e98dd4390
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ public class LoginForm : BaseLayout
|
||||||
return ServerConfiguration.Instance.Mail.MailEnabled switch
|
return ServerConfiguration.Instance.Mail.MailEnabled switch
|
||||||
{
|
{
|
||||||
true when string.IsNullOrWhiteSpace(user.EmailAddress) => this.Redirect("~/login/setEmail"),
|
true when string.IsNullOrWhiteSpace(user.EmailAddress) => this.Redirect("~/login/setEmail"),
|
||||||
true when user.EmailAddressVerified => this.Redirect("~/login/sendVerificationEmail"),
|
true when !user.EmailAddressVerified => this.Redirect("~/login/sendVerificationEmail"),
|
||||||
_ => string.IsNullOrWhiteSpace(redirect) ? this.Redirect("~/") : this.Redirect(redirect),
|
_ => string.IsNullOrWhiteSpace(redirect) ? this.Redirect("~/") : this.Redirect(redirect),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue