We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d51082 commit 6216118Copy full SHA for 6216118
1 file changed
src/Happstack/Authenticate/Client.hs
@@ -403,13 +403,13 @@ urlBase64Decode bs = Base64.decode (addPadding (BS.map urlDecode bs))
403
postLoginRedirect :: TVar AuthenticateModel -> IO ()
404
postLoginRedirect modelTV =
405
do m <- atomically $ readTVar modelTV
406
- case _postLoginRedirectURL m of
407
- Nothing -> pure ()
408
- (Just url) -> do
+ case (_postLoginRedirectURL m, _muser m) of
+ (Just url, Just _) -> do
409
(Just w) <- GHCJS.currentWindow
410
location <- getLocation w
411
setHref location url
412
pure ()
+ _ -> pure ()
413
414
postSignupRedirect :: TVar AuthenticateModel -> IO ()
415
postSignupRedirect modelTV =
0 commit comments