mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: email verification via smtp
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Server.Settings
|
||||
{
|
||||
public class AppSettings
|
||||
{
|
||||
[Required, MaxLength(256)]
|
||||
public string Domain { get; set; } = string.Empty;
|
||||
public bool Https { get; set; } = true;
|
||||
}
|
||||
}
|
||||
@@ -8,5 +8,6 @@
|
||||
public bool First_User_Admin { get; set; } = true;
|
||||
public bool Admins_Require_2FA { get; set; } = true;
|
||||
public string API_Key_HMAC_Secret { get; set; } = string.Empty;
|
||||
public string Email_Verification_HMAC_Secret { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Server.Settings
|
||||
{
|
||||
public class EmailSettings
|
||||
{
|
||||
[MaxLength(256)]
|
||||
public string Host { get; set; } = string.Empty;
|
||||
|
||||
[Range(1, 65535)]
|
||||
public int Port { get; set; } = 587;
|
||||
|
||||
[MaxLength(256)]
|
||||
public string User { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(256)]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[EmailAddress]
|
||||
public string From { get; set; } = string.Empty;
|
||||
public string Verification_HMAC_Secret { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user