mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-06 03:48:40 +00:00
Add email blacklist and refactor email validity checks
This commit is contained in:
parent
8b8756e6de
commit
980a2af3c6
7 changed files with 71 additions and 23 deletions
|
@ -39,7 +39,7 @@ public class SetEmailForm : BaseLayout
|
|||
UserEntity? user = await this.Database.Users.FirstOrDefaultAsync(u => u.UserId == token.UserId);
|
||||
if (user == null) return this.Redirect("~/login");
|
||||
|
||||
if (!SanitizationHelper.IsValidEmail(emailAddress))
|
||||
if (!SMTPHelper.IsValidEmail(this.Database, emailAddress))
|
||||
{
|
||||
this.Error = this.Translate(ErrorStrings.EmailInvalid);
|
||||
return this.Page();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue