check that now is > LastActivity Date

This commit is contained in:
Kyle Spearrin 2017-04-28 11:19:43 -04:00
parent 01736ca685
commit cc63eb383d

View file

@ -55,7 +55,7 @@ namespace Bit.App.Services
// Has it been longer than lockSeconds since the last time the app was used?
var now = DateTime.UtcNow;
if((now - _appSettings.LastActivity).TotalSeconds < lockSeconds)
if(now > _appSettings.LastActivity && (now - _appSettings.LastActivity).TotalSeconds < lockSeconds)
{
return LockType.None;
}