rtfeldman / elm-spa-example

A Single Page Application written in Elm
https://dev.to/rtfeldman/tour-of-an-open-source-elm-spa
MIT License
3.29k stars 531 forks source link

Show login error message if credentials are wrong #10

Closed andys8 closed 6 years ago

andys8 commented 7 years ago

Pull request contains a fix addressing the issue that currently no error message is displayed if the user tries to login with wrong credentials. #4

This will handle the server response:

{"errors":{"email or password":["is invalid"]}}

and render: image

rtfeldman commented 6 years ago

Nice, thanks @andys8!