Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Fixed #165 - Login and Registration will allow case-insensitive usernames now. (#169)
Joseph Milazzo9e5bcb8501de
diff --git a/API/Controllers/AccountController.cs b/API/Controllers/AccountController.csindex 04d0bf9d5..f788f931f 100644--- a/API/Controllers/AccountController.cs+++ b/API/Controllers/AccountController.cs@@ -82,7 +82,7 @@ namespace API.Controllers[HttpPost("register")]public async Task<ActionResult<UserDto>> Register(RegisterDto registerDto){- if (await _userManager.Users.AnyAsync(x => x.UserName == registerDto.Username))+ if (await _userManager.Users.AnyAsync(x => x.NormalizedUserName == registerDto.Username.ToUpper())){return BadRequest("Username is taken.");}