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:
parent
e8ba301c6a
commit
e6b7a5297a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue