Open byrnenick opened 3 years ago
Could be due to work being performed on the database when testing; will retest once this has done and see if the performance issue remains.
Had created a message pop-up just under the login input widget to signify if the website is contacting the database as an "attempt to log in". Will produce a message "Unable to login, please check your details or internet connection" if login fails and will produce a "Logging you in" if authentication succeeds.
We need to create better styling for this. Screenshot shared in Keybase for reference. Let's see if there's a banner that's available within the existing CSS framework that we are using.
What error cases are we considering, too?
Case 1: Usr/pw mismatch: "Your username or password did not match, please try again." Case 2: Server error/something else: "Something went wrong! Please try again shortly."
Have updated the login error message styling to utilise the styling of alerts from mdbootstrap.
Also, the messages and it's colour will display based on the aforementioned use case from @byrnenick's comment (user details error & network/something else.
NOTE on colours:
Log in response time is >15 seconds when testing.
This is particularly problematic when credentials are incorrect as it takes too long to find out that they were incorrect.