mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Redirect user to email verification on signup, fix email address not setting on register
This commit is contained in:
parent
96e739a8fe
commit
e629d79f09
2 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,7 @@ public class Database : DbContext
|
||||||
Password = password,
|
Password = password,
|
||||||
LocationId = l.Id,
|
LocationId = l.Id,
|
||||||
Biography = username + " hasn't introduced themselves yet.",
|
Biography = username + " hasn't introduced themselves yet.",
|
||||||
|
EmailAddress = emailAddress,
|
||||||
};
|
};
|
||||||
this.Users.Add(user);
|
this.Users.Add(user);
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,8 @@ public class RegisterForm : BaseLayout
|
||||||
|
|
||||||
this.Response.Cookies.Append("LighthouseToken", webToken.UserToken);
|
this.Response.Cookies.Append("LighthouseToken", webToken.UserToken);
|
||||||
|
|
||||||
|
if (ServerSettings.Instance.SMTPEnabled) return this.Redirect("~/login/sendVerificationEmail");
|
||||||
|
|
||||||
return this.RedirectToPage(nameof(LandingPage));
|
return this.RedirectToPage(nameof(LandingPage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue