mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +01:00
Fix server 500 error when enabling 2FA policy from Portal (#1254)
* Fix illegal chars in senderTag * add null check
This commit is contained in:
parent
597fa01344
commit
4b98361684
@ -59,7 +59,7 @@ namespace Bit.Core.Services
|
||||
_logger = logger;
|
||||
_client = amazonSimpleEmailService;
|
||||
_source = $"\"{globalSettings.SiteName}\" <{globalSettings.Mail.ReplyToEmail}>";
|
||||
_senderTag = $"Server_{globalSettings.ProjectName}";
|
||||
_senderTag = $"Server_{globalSettings.ProjectName?.Replace(' ', '_')}";
|
||||
if (!string.IsNullOrWhiteSpace(_globalSettings.Mail.AmazonConfigSetName))
|
||||
{
|
||||
_configSetName = _globalSettings.Mail.AmazonConfigSetName;
|
||||
|
Loading…
Reference in New Issue
Block a user