Rpxnow login looks at DEST cookie

This commit is contained in:
Michael Snoyman 2010-02-09 20:30:29 +02:00
parent 28c5d2ab55
commit cca7450613

View File

@ -181,11 +181,15 @@ rpxnowLogin = do
(('#':rest):_) -> rest
(s:_) -> s
(d:_) -> d
let dest' = case cookies rr "DEST" of
[] -> dest
(x:_) -> x
ident <- Rpxnow.authenticate apiKey token
onRpxnowLogin ident
header authCookieName $ Rpxnow.identifier ident
header authDisplayName $ getDisplayName ident
redirect RedirectTemporary dest
deleteCookie "DEST"
redirect RedirectTemporary dest'
data MissingToken = MissingToken
deriving (Show, Typeable)