Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ namespace PasswordRegistration;

internal static class StringExtensions
{
/// <summary>
/// Takes an email string and puts it into the way it's stored in the database
/// </summary>
/// Duende User Management respects the email RFC, where the part before the @ is case-sensitive
/// and the domain itself is not.
///
/// aaa@aaa.com and AaA@aaa.com are different email addresses.
///
/// In this sample, we are normalizing the email address so that the sample app treats
/// these 2 example emails as the same.
///
/// While it differs from the RFC, it's what users expect.
public static string NormalizeEmail(this string email) => email.ToLowerInvariant();
}
Loading