From db883f19b802b4f9c209cb2f956d78a6fb9a940b Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 2 Feb 2017 07:43:55 +0200 Subject: [PATCH] Fix some whitespace --- yesod-auth/Yesod/Auth/Email.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/yesod-auth/Yesod/Auth/Email.hs b/yesod-auth/Yesod/Auth/Email.hs index f8bb51dd..be5669a9 100644 --- a/yesod-auth/Yesod/Auth/Email.hs +++ b/yesod-auth/Yesod/Auth/Email.hs @@ -455,12 +455,11 @@ registerHelper allowUsername dest = do pidentifier <- lookupPostParam "email" midentifier <- case pidentifier of Nothing -> do - (jidentifier :: Result Value) <- lift parseJsonBody + (jidentifier :: Result Value) <- lift parseJsonBody case jidentifier of Error _ -> return Nothing Success val -> return $ parseMaybe parseEmail val Just _ -> return pidentifier - let eidentifier = case midentifier of Nothing -> Left Msg.NoIdentifierProvided Just x @@ -586,7 +585,7 @@ postLoginR = do result <- lift $ runInputPostResult $ (,) <$> ireq textField "email" <*> ireq textField "password" - + midentifier <- case result of FormSuccess (iden, pass) -> return $ Just (iden, pass) _ -> do @@ -594,7 +593,7 @@ postLoginR = do case creds of Error _ -> return Nothing Success val -> return $ parseMaybe parseCreds val - + case midentifier of Nothing -> loginErrorMessageI LoginR Msg.NoIdentifierProvided Just (identifier, pass) -> do