mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-29 17:24:51 +09:00
Fix error in key expiration check caused by a typo
This commit is contained in:
parent
e8ba301c6a
commit
e6b7a5297a
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ instance YesodHttpSig App where
|
||||||
existsInDB = isJust mvkid
|
existsInDB = isJust mvkid
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
let stillValid Nothing = True
|
let stillValid Nothing = True
|
||||||
stillValue (Just expires) = expires > now
|
stillValid (Just expires) = expires > now
|
||||||
(write, key', mexpires') <-
|
(write, key', mexpires') <-
|
||||||
if verify' key && stillValid mexpires
|
if verify' key && stillValid mexpires
|
||||||
then return (not existsInDB, key, mexpires)
|
then return (not existsInDB, key, mexpires)
|
||||||
|
|
Loading…
Reference in a new issue