Remove dashes from pins

This commit is contained in:
LogicalPhallacy 2019-03-29 12:48:07 -07:00 committed by GitHub
parent 2d396cb589
commit 13e94a8b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)