mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-14 22:02:26 +00:00
Rework the flow of setting email from the website
This commit is contained in:
parent
3f70563e1d
commit
cf1769ca77
8 changed files with 47 additions and 94 deletions
|
@ -88,7 +88,7 @@ public class SendVerificationEmailPage : BaseLayout
|
|||
$"To verify your account, click the following link: {ServerConfiguration.Instance.ExternalUrl}/verifyEmail?token={verifyToken.EmailToken}\n\n\n" +
|
||||
"If this wasn't you, feel free to ignore this email.";
|
||||
|
||||
this.Success = SMTPHelper.SendEmail(user.EmailAddress, "Project Lighthouse Email Verification", body);
|
||||
this.Success = await SMTPHelper.SendEmailAsync(user.EmailAddress, "Project Lighthouse Email Verification", body);
|
||||
|
||||
// Don't send another email for 30 seconds
|
||||
recentlySentEmail.TryAdd(user.UserId, TimeHelper.TimestampMillis + 30 * 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue