Set a more descriptive error on invalid credentials
This commit is contained in:
parent
e5dc50195f
commit
4a78b6f7bf
|
@ -37,7 +37,7 @@ postLoginR authReq = do
|
||||||
FormSuccess auth -> do
|
FormSuccess auth -> do
|
||||||
maybeAuth <- liftHandler $ authReq $ ("Basic " <> ) $ B64.encodeBase64 $ encodeUtf8 auth
|
maybeAuth <- liftHandler $ authReq $ ("Basic " <> ) $ B64.encodeBase64 $ encodeUtf8 auth
|
||||||
case maybeAuth of
|
case maybeAuth of
|
||||||
Nothing -> loginErrorMessageI LoginR Msg.NoIdentifierProvided -- invalid creds
|
Nothing -> loginErrorMessageI LoginR Msg.InvalidEmailPass -- invalid creds
|
||||||
Just txt -> do
|
Just txt -> do
|
||||||
setCredsRedirect Creds {credsPlugin = pluginName, credsIdent = txt, credsExtra = []}
|
setCredsRedirect Creds {credsPlugin = pluginName, credsIdent = txt, credsExtra = []}
|
||||||
_ -> loginErrorMessageI LoginR Msg.NoIdentifierProvided
|
_ -> loginErrorMessageI LoginR Msg.NoIdentifierProvided
|
||||||
|
|
Loading…
Reference in New Issue