mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Do not show password in clear text in email configuration (Fix #1790)
This commit is contained in:
@@ -5,11 +5,20 @@ namespace BTCPayServer.Models.ServerViewModels
|
||||
{
|
||||
public class EmailsViewModel
|
||||
{
|
||||
public EmailsViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
public EmailsViewModel(EmailSettings settings)
|
||||
{
|
||||
Settings = settings;
|
||||
PasswordSet = !string.IsNullOrEmpty(settings?.Password);
|
||||
}
|
||||
public EmailSettings Settings
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public bool PasswordSet { get; set; }
|
||||
[EmailAddress]
|
||||
[Display(Name = "Test Email")]
|
||||
public string TestEmail
|
||||
|
||||
Reference in New Issue
Block a user