chore(backend): remove unnecessary settings

This commit is contained in:
2026-03-10 03:13:47 -04:00
parent 4c071fcc39
commit 5f11ee4350
2 changed files with 0 additions and 8 deletions
@@ -226,11 +226,6 @@ namespace SharpbinV3.Server.Services
{
if (string.IsNullOrWhiteSpace(user.Email))
return;
if (string.IsNullOrWhiteSpace(_emailSettings.Verification_HMAC_Secret))
{
_logger.LogWarning($"Email verification is not configured. Cannot send verification email to {user.Email}");
return;
}
string token = Utilities.GenerateSecureRandomString(EmailVerificationTokenLength);
string tokenHash = Utilities.ComputeSha256(token);
@@ -256,8 +251,6 @@ namespace SharpbinV3.Server.Services
{
if (token.Length != EmailVerificationTokenLength)
return (false, "Invalid token.");
if (string.IsNullOrWhiteSpace(_emailSettings.Verification_HMAC_Secret))
return (false, "Email verification is not configured.");
string tokenHash = Utilities.ComputeSha256(token);
var verificationToken = await _db.EmailVerificationTokens.Include(t => t.User).FirstOrDefaultAsync(t => t.TokenHash == tokenHash);