Repository navigation
Add "Incorrect username or password" message - #272
Conversation
Instead of simply sending users back to the login screen when a login fails, alert them to this fact in text above the login form.
jadebuckwalter
left a comment
There was a problem hiding this comment.
@psvenk Looks good, although it's a little jarring that it goes to the homepage for a split second before redirecting to the login page. Is there any way to fix that?
|
@jadebuckwalter Making login validation work without needing to go to the home page would entail communicating with the backend from the login page, so that the backend can talk to Aspen to validate the login. We would furthermore need to do another handshake between the frontend and the backend so that the frontend redirects to the home page or to the "incorrect password" login page depending on the result of this request, and we would need to account for possible race conditions in sending data to the frontend while it is still loading the home page (upon a successful login) and in properly disposing of sessions. This would not only bring a great deal of complexity to the login page (which currently is quite light and only has a little bit of JS) but also make the backend, including Your thoughts? |
|
@psvenk Ok, makes sense. I wasn't sure how complicated it would be, and based on what you said, it seems like the hassle would outweigh the benefit. |
Closes #226. Instead of simply sending users back to the login screen when a login fails, alert them to this fact in text above the login form.