sfbrigade / sf-lifeline

GNU Affero General Public License v3.0
7 stars 4 forks source link

User should see descriptive error messages on authentication failure on the Log in page #94

Closed francisli closed 3 months ago

francisli commented 3 months ago

Right now, if the log in fails, it redirects to the homepage.

Instead, the client should catch the error and, depending on the status code, display an appropriate error.

Note that, right now, the API status code response does not distinguish between different reasons for failure- i.e. email not verified vs not yet approved. I think we should update the API so that it does, so that we can display appropriate messages for each condition.