In the event that the login endpoint on Fennel Labs' API is sent a bad username/password combination, the API returns a 400 error with a notification that login couldn't be completed with the given credentials. Currently, the app silently fails if it encounters this behavior. This patch adds a very simple error popup letting the user know that their login failed in the event that the return from the loginEndpoint.directPost call is null.
In the event that the login endpoint on Fennel Labs' API is sent a bad username/password combination, the API returns a 400 error with a notification that login couldn't be completed with the given credentials. Currently, the app silently fails if it encounters this behavior. This patch adds a very simple error popup letting the user know that their login failed in the event that the return from the loginEndpoint.directPost call is null.