1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-28 11:54:51 +09:00

Fix error in key expiration check caused by a typo

This commit is contained in:
fr33domlover 2019-02-14 22:16:15 +00:00
parent e8ba301c6a
commit e6b7a5297a

View file

@ -626,7 +626,7 @@ instance YesodHttpSig App where
existsInDB = isJust mvkid
now <- liftIO getCurrentTime
let stillValid Nothing = True
stillValue (Just expires) = expires > now
stillValid (Just expires) = expires > now
(write, key', mexpires') <-
if verify' key && stillValid mexpires
then return (not existsInDB, key, mexpires)