mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
23 lines
489 B
C#
23 lines
489 B
C#
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace Bit.Core.Identity
|
|
{
|
|
public class LowerInvariantLookupNormalizer : ILookupNormalizer
|
|
{
|
|
public string NormalizeEmail(string email)
|
|
{
|
|
return Normalize(email);
|
|
}
|
|
|
|
public string NormalizeName(string name)
|
|
{
|
|
return Normalize(name);
|
|
}
|
|
|
|
private string Normalize(string key)
|
|
{
|
|
return key?.Normalize().ToLowerInvariant();
|
|
}
|
|
}
|
|
}
|