Make Password Reset case sensitive
This commit is contained in:
parent
c12cab6844
commit
5f8477ba47
|
@ -67,7 +67,7 @@ namespace Jellyfin.Server.Implementations.Users
|
||||||
else if (string.Equals(
|
else if (string.Equals(
|
||||||
spr.Pin.Replace("-", string.Empty, StringComparison.Ordinal),
|
spr.Pin.Replace("-", string.Empty, StringComparison.Ordinal),
|
||||||
pin.Replace("-", string.Empty, StringComparison.Ordinal),
|
pin.Replace("-", string.Empty, StringComparison.Ordinal),
|
||||||
StringComparison.OrdinalIgnoreCase))
|
StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
var resetUser = userManager.GetUserByName(spr.UserName)
|
var resetUser = userManager.GetUserByName(spr.UserName)
|
||||||
?? throw new ResourceNotFoundException($"User with a username of {spr.UserName} not found");
|
?? throw new ResourceNotFoundException($"User with a username of {spr.UserName} not found");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user