dotnet / dotnet/aspnetcore

Username with German or French letters gets encoded and passes validation ASP.NET Core Identity

Open
#9,107 36 comments 0 reactions 0 assignees View on GitHub
affected-few area-identity enhancement severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

On .Net Core 3.0 Preview 3, Asp.NET Core Identity Template, register a user with username
`bernhard@günter.com
`
**Expected**
Validation responds that this is not an allowed character for a username since the default is
`
public string AllowedUserNameCharacters { get; set; }
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@+";
`
**Result**
`bernhard@xn--gnter-kva.com
` is stored in the db as username and email and displayed in the UI!

That is pretty unexpected for an old framework and a handicap in the current implementation.
Probably this has been encountered in the past??

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.