milkowska / MealBay

0 stars 0 forks source link

Handling wrong credentials when login. #20

Closed milkowska closed 1 year ago

milkowska commented 1 year ago

To check if the credentials that user enters are valid there should be a message displaying if the login is not successful. if it is, the user can log in (and then log out).

milkowska commented 1 year ago

Currently the user collection contains only one user: Image This user can log in if the credentials are entered correctly (email and a password).

to verify that the user is being authenticated, a new email and password that have not been previously registered are entered on the login page: Image

The toast message appears saying "Wrong credentials. Try again!"

I have added a message that logcat displays that says what was invalid.

Image

TODO I think the UI should be improved when the credentials are wrong, for instance, the text fields could be marked as red etc. This will probably be added over the next few weeks.