Base64 is case sensitive.

This commit is contained in:
Felipe Lessa 2015-05-27 11:25:51 -03:00
parent 2415e19316
commit 9385651dcd

View File

@ -92,7 +92,7 @@ checkSessionId text = do
let bs = TE.encodeUtf8 text
decoded <- either (const Nothing) Just $ B64URL.decode bs
guard (B8.length decoded == 18)
return $ S $ T.toLower text
return $ S text
-- | Securely generate a new SessionId.