diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-26 05:13:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-26 05:13:27 -0400 |
commit | 6cecc26206c4a539999b04664136c6f785211a41 (patch) | |
tree | 146dbfa65cd54da6531367d13ad6faf5d7c041e3 /Utility | |
parent | 9d6b59d0e21e5917d098a84b7b1654bd8d07efb3 (diff) |
update build deps
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/WebApp.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs index fb82c2050..6936c6699 100644 --- a/Utility/WebApp.hs +++ b/Utility/WebApp.hs @@ -25,7 +25,7 @@ import Control.Exception import Crypto.Random import Data.Digest.Pure.SHA import qualified Data.ByteString.Lazy as L -import Data.AssocList +import Data.List import qualified Data.Text as T import qualified Data.Text.Encoding as TE import Blaze.ByteString.Builder.Char.Utf8 (fromText) @@ -130,7 +130,7 @@ checkAuthToken extractToken = do webapp <- getYesod req <- getRequest let params = reqGetParams req - if lookupDef "" "auth" params == extractToken webapp + if lookup "auth" params == Just (extractToken webapp) then return Authorized else return AuthenticationRequired |