mirror of
https://github.com/jellyfin/jellyfin
synced 2024-07-21 09:54:24 +00:00
Merge pull request #8377 from Bond-009/resetcase
Make Password Reset case sensitive
This commit is contained in:
commit
38b7d0222f
|
@ -67,7 +67,7 @@ namespace Jellyfin.Server.Implementations.Users
|
|||
else if (string.Equals(
|
||||
spr.Pin.Replace("-", string.Empty, StringComparison.Ordinal),
|
||||
pin.Replace("-", string.Empty, StringComparison.Ordinal),
|
||||
StringComparison.OrdinalIgnoreCase))
|
||||
StringComparison.Ordinal))
|
||||
{
|
||||
var resetUser = userManager.GetUserByName(spr.UserName)
|
||||
?? throw new ResourceNotFoundException($"User with a username of {spr.UserName} not found");
|
||||
|
|
Loading…
Reference in a new issue