mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-03 16:17:14 +00:00
Add Username to MailConfig and fix typo
This commit is contained in:
parent
07fa58b180
commit
5bc875bc04
4 changed files with 6 additions and 4 deletions
|
@ -46,7 +46,7 @@ public class PasswordResetRequestForm : BaseLayout
|
||||||
|
|
||||||
if (user == null)
|
if (user == null)
|
||||||
{
|
{
|
||||||
this.Status = $"A password reset request has been sent to the email {email}.\n" +
|
this.Status = $"A password reset request has been sent to the email {email}. " +
|
||||||
"If you do not receive an email verify that you have entered the correct email address";
|
"If you do not receive an email verify that you have entered the correct email address";
|
||||||
return this.Page();
|
return this.Page();
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public class PasswordResetRequestForm : BaseLayout
|
||||||
this.Database.PasswordResetTokens.Add(token);
|
this.Database.PasswordResetTokens.Add(token);
|
||||||
await this.Database.SaveChangesAsync();
|
await this.Database.SaveChangesAsync();
|
||||||
|
|
||||||
this.Status = $"A password reset request has been sent to the email {email}." +
|
this.Status = $"A password reset request has been sent to the email {email}. " +
|
||||||
"If you do not receive an email verify that you have entered the correct email address";
|
"If you do not receive an email verify that you have entered the correct email address";
|
||||||
return this.Page();
|
return this.Page();
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,8 @@ public class MailConfiguration
|
||||||
|
|
||||||
public string FromName { get; set; } = "Project Lighthouse";
|
public string FromName { get; set; } = "Project Lighthouse";
|
||||||
|
|
||||||
|
public string Username { get; set; } = "";
|
||||||
|
|
||||||
public string Password { get; set; } = "";
|
public string Password { get; set; } = "";
|
||||||
|
|
||||||
public bool UseSSL { get; set; } = true;
|
public bool UseSSL { get; set; } = true;
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class ServerConfiguration
|
||||||
// You can use an ObsoleteAttribute instead. Make sure you set it to error, though.
|
// You can use an ObsoleteAttribute instead. Make sure you set it to error, though.
|
||||||
//
|
//
|
||||||
// Thanks for listening~
|
// Thanks for listening~
|
||||||
public const int CurrentConfigVersion = 12;
|
public const int CurrentConfigVersion = 13;
|
||||||
|
|
||||||
#region Meta
|
#region Meta
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ public static class SMTPHelper
|
||||||
client = new SmtpClient(ServerConfiguration.Instance.Mail.Host, ServerConfiguration.Instance.Mail.Port)
|
client = new SmtpClient(ServerConfiguration.Instance.Mail.Host, ServerConfiguration.Instance.Mail.Port)
|
||||||
{
|
{
|
||||||
EnableSsl = ServerConfiguration.Instance.Mail.UseSSL,
|
EnableSsl = ServerConfiguration.Instance.Mail.UseSSL,
|
||||||
Credentials = new NetworkCredential(ServerConfiguration.Instance.Mail.FromAddress, ServerConfiguration.Instance.Mail.Password),
|
Credentials = new NetworkCredential(ServerConfiguration.Instance.Mail.Username, ServerConfiguration.Instance.Mail.Password),
|
||||||
};
|
};
|
||||||
|
|
||||||
fromAddress = new MailAddress(ServerConfiguration.Instance.Mail.FromAddress, ServerConfiguration.Instance.Mail.FromName);
|
fromAddress = new MailAddress(ServerConfiguration.Instance.Mail.FromAddress, ServerConfiguration.Instance.Mail.FromName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue