greaterthen/lessthen reversal fix
This commit is contained in:
parent
09921a00aa
commit
758e35baba
|
@ -45,7 +45,7 @@ namespace Emby.Server.Implementations.Library
|
|||
foreach (var resetfile in Directory.EnumerateFiles(_passwordResetFileBaseDir, $"{_passwordResetFileBaseName}*"))
|
||||
{
|
||||
var spr = (SerializablePasswordReset) _jsonSerializer.DeserializeFromFile(typeof(SerializablePasswordReset), resetfile);
|
||||
if (spr.ExpirationDate > DateTime.Now)
|
||||
if (spr.ExpirationDate < DateTime.Now)
|
||||
{
|
||||
File.Delete(resetfile);
|
||||
}
|
||||
|
@ -111,8 +111,8 @@ namespace Emby.Server.Implementations.Library
|
|||
private class SerializablePasswordReset : PasswordPinCreationResult
|
||||
{
|
||||
public string Pin { get; set; }
|
||||
|
||||
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user