Repository navigation
Improve login and registration pages - #2794
Conversation
Frenzie
left a comment
There was a problem hiding this comment.
The pictures are a bit too low-res imo. No need for new ones; they're legible (if barely :-P).
It says "maximum…" (lowercase m) and "At least…" (uppercase A).
Keep the user on login page on failure
I should've done that years ago, but it only ever seems to bother me when I'm on my phone far away from a proper PC or some such and then I forget.
On the registration page, username tip started with a minuscule, while the password tip started with a capital.
198fa0f to
10e8f63
Compare
|
Good for me |
Frenzie
left a comment
There was a problem hiding this comment.
lgtm too, I only had those minor spelling nitpicks 👍
| ', nonce=' . $nonce . | ||
| ', c=' . $challenge); | ||
| Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false); | ||
| Minz_Request::bad( |
There was a problem hiding this comment.
The new code returns 200, and not 403 anymore, right? It could be good to reintroduce the 403 at some point.
Indeed, error codes are used by other systems (such as fail2ban) e.g. to detect attacts
There was a problem hiding this comment.
To be exact it returns a 302. I think there's work to do on how we handle responses, and errors in particular but I didn't want to make this PR too complicated. Here I wanted to keep the users on the same URL (?c=auth&a=login) for consistency and because there's a small condition that would be skipped otherwise (nothing dramatic).
It wouldn't be too complicated to rework this part, though I'm not sure how important it is.
I noticed a bunch of issues on the login/registration forms, causing a bad experience. I tried to address most of them in this PR.
Changes proposed in this pull request:
The last point is still WIP because I'll have to update all the themes. I'd like your feedback before going forward. It's nothing fancy: it mainly adds more space to the forms (so they can breathe and labels stay on a single line). I also changed the look of the "cancel" button back to a real link since it's its behavior. I'll change its label to "Back to home" in a future PR which will add a proper home page.
Before (tell me if you want better quality images):
After:
How to test the feature manually:
Note you might need to edit the DOM to remove frontend restrictions on username and password formats.
Pull request checklist:
Additional information can be found in the documentation.