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.
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.