mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-16 12:29:01 -04:00
Update DbService.cs (#1098)
This commit is contained in:
committed by
Leendert de Borst
parent
2d40e424e8
commit
180977b833
@@ -505,11 +505,12 @@ public sealed class DbService : IDisposable
|
||||
.ToListAsync();
|
||||
|
||||
// Filter the list of email addresses to only include those that are in the supported private email domains.
|
||||
emailAddresses = emailAddresses
|
||||
.Where(email => _config.PrivateEmailDomains.Exists(domain => email.EndsWith(domain)))
|
||||
.ToList();
|
||||
if (_config.PrivateEmailDomains.Count() > 0)
|
||||
{
|
||||
emailAddresses = emailAddresses.Where(email => _config.PrivateEmailDomains.Exists(domain => email.EndsWith(domain))).ToList();
|
||||
}
|
||||
|
||||
return emailAddresses;
|
||||
return [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user