Remove dashes from pins

pull/1149/head
LogicalPhallacy 6 years ago committed by GitHub
parent 2d396cb589
commit 13e94a8b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,7 +53,7 @@ namespace Emby.Server.Implementations.Library
{
File.Delete(resetfile);
}
else if (spr.Pin.Equals(pin, StringComparison.InvariantCultureIgnoreCase))
else if (spr.Pin.Replace('-', '').Equals(pin.Replace('-', ''), StringComparison.InvariantCultureIgnoreCase))
{
var resetUser = _userManager.GetUserByName(spr.UserName);
if (resetUser == null)

Loading…
Cancel
Save