New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved email phone in form #3191
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3191 +/- ##
==========================================
+ Coverage 83.66% 83.69% +0.03%
==========================================
Files 251 251
Lines 15744 15778 +34
Branches 2942 2952 +10
==========================================
+ Hits 13172 13206 +34
Misses 1639 1639
Partials 933 933
Continue to review full report at Codecov.
|
7f0cdce
to
9e49ef9
Compare
9e49ef9
to
368c321
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not fully reviewed this but there's at least one bug so I might as well point that out first.
368c321
to
dba30f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few design things, some JS issues, and non JS validation issues
If a staff user is reporting as another user, and gives an invalid email address, for example.
Rename the not-logging-in username field to username_register. Keep the sign-in field as username because that e.g. overlaps with auth code in two-factor authentication.
dba30f9
to
82a3e9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, one final thing, there's not a template set for sms in redirect_or_confirm_creation
so you get an error page as it tries to display the report/new
template and doesn't have all the information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error problem with SMS failing is fixed in fe39d46 so the rest of this looks ok.
This does three things:
And then one I am not sure about:
3. It splits the dual-use username field into username (signing in form) and username_register (confirm by code). I think this might help with obscure errors where e.g. if new report form submission to server has a problem, it would display the username in both fields client-side, which would then cause an issue on next submission if you only altered the one you could see, not realising there was another. I did not rename username to username_sign_in (I did get halfway through, sigh) because it starts to interact with the auth code e.g. with 2FA and change password etc and I didn't want to affect them (I mean, hopefully I haven't!).