Fix some whitespace
This commit is contained in:
parent
5e84a6c063
commit
db883f19b8
@ -455,12 +455,11 @@ registerHelper allowUsername dest = do
|
|||||||
pidentifier <- lookupPostParam "email"
|
pidentifier <- lookupPostParam "email"
|
||||||
midentifier <- case pidentifier of
|
midentifier <- case pidentifier of
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
(jidentifier :: Result Value) <- lift parseJsonBody
|
(jidentifier :: Result Value) <- lift parseJsonBody
|
||||||
case jidentifier of
|
case jidentifier of
|
||||||
Error _ -> return Nothing
|
Error _ -> return Nothing
|
||||||
Success val -> return $ parseMaybe parseEmail val
|
Success val -> return $ parseMaybe parseEmail val
|
||||||
Just _ -> return pidentifier
|
Just _ -> return pidentifier
|
||||||
|
|
||||||
let eidentifier = case midentifier of
|
let eidentifier = case midentifier of
|
||||||
Nothing -> Left Msg.NoIdentifierProvided
|
Nothing -> Left Msg.NoIdentifierProvided
|
||||||
Just x
|
Just x
|
||||||
@ -586,7 +585,7 @@ postLoginR = do
|
|||||||
result <- lift $ runInputPostResult $ (,)
|
result <- lift $ runInputPostResult $ (,)
|
||||||
<$> ireq textField "email"
|
<$> ireq textField "email"
|
||||||
<*> ireq textField "password"
|
<*> ireq textField "password"
|
||||||
|
|
||||||
midentifier <- case result of
|
midentifier <- case result of
|
||||||
FormSuccess (iden, pass) -> return $ Just (iden, pass)
|
FormSuccess (iden, pass) -> return $ Just (iden, pass)
|
||||||
_ -> do
|
_ -> do
|
||||||
@ -594,7 +593,7 @@ postLoginR = do
|
|||||||
case creds of
|
case creds of
|
||||||
Error _ -> return Nothing
|
Error _ -> return Nothing
|
||||||
Success val -> return $ parseMaybe parseCreds val
|
Success val -> return $ parseMaybe parseCreds val
|
||||||
|
|
||||||
case midentifier of
|
case midentifier of
|
||||||
Nothing -> loginErrorMessageI LoginR Msg.NoIdentifierProvided
|
Nothing -> loginErrorMessageI LoginR Msg.NoIdentifierProvided
|
||||||
Just (identifier, pass) -> do
|
Just (identifier, pass) -> do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user