WhiteflagProtocol / whiteflag-schoolpilot

Pilot for locating schools using the Whiteflag protocol
1 stars 2 forks source link

Added a very simple error message when the Login endpoint fails. #11

Closed Romulus10 closed 5 months ago

Romulus10 commented 5 months ago

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.