Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add field errors to registration form template #23

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

Merged
bbelderbos merged 1 commit into talkpython:master from tbrlpld:master
Dec 30, 2019
Merged

Add field errors to registration form template #23

bbelderbos merged 1 commit into talkpython:master from tbrlpld:master
Dec 30, 2019

Conversation

@tbrlpld
Copy link
Contributor

@tbrlpld tbrlpld commented Dec 30, 2019

Before, it was possible to enter invalid data into the registration
form, e.g. duplicate username, insecure password, etc., without being
notified about the violation. The form would simply reload and no user
is created and no email is sent.

Without being notified about the registration form issue, one might
assume that something in the setup is not correct and waste hours
trying to debug something that is not broken. At least, that is what
happened to me 😬

This commit adds the form field errors to the registration form
template.

This change has been discussed with @bbelderbos view email.

Before, it was possible to enter invalid data into the registration
form, e.g. duplicate username, insecure password, etc., without being
notified about the violation. The form would simply reload and no user
is created and no email is sent.
Without being notified about the registration form issue, one might
assume that something in the setup is not correct and waste hours
trying to debug something that is not broken. At least, that is what
happened to me 😬
This commit adds the form field errors to the registration form
template.
Copy link
Collaborator

bbelderbos commented Dec 30, 2019
edited
Loading

Thanks a lot @tbrlpld it's hard to see the diff here so I downloaded the new zip file and compared it with what I had. It seems you only updated django_registration/registration_form.html with the following changes, right?

Screenshot 2019年12月30日 at 21 11 05

@bbelderbos bbelderbos self-assigned this Dec 30, 2019
Copy link
Contributor Author

tbrlpld commented Dec 30, 2019

@bbelderbos Yes, that was the only form where I was having the issue. Errors in the login form seem to be caught and displayed as above the form like other "non field errors" would. So no need to change that.

bbelderbos reacted with hooray emoji

Copy link
Collaborator

bbelderbos commented Dec 30, 2019
edited
Loading

@tbrlpld great, I am seeing it locally now too so merging the fix. As discussed also pinning Django to 2.2 till django-registration becomes compatible with Django 3.x (issue ubernostrum/django-registration#191) - thanks

@bbelderbos bbelderbos merged commit 341a64b into talkpython:master Dec 30, 2019
Copy link
Contributor Author

tbrlpld commented Dec 30, 2019 via email

Thank you for the merge! Hope this will help some other students in the future :)
...
On 30. Dec 2019, at 12:30, Bob Belderbos ***@***.***> wrote: Merged #23 <#23> into master. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#23?email_source=notifications&email_token=AF5GCNONVHBDFTGRH7RCZW3Q3JZAVA5CNFSM4KBFBZ7KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVW6E7PI#event-2914799549>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF5GCNNCIED7PDZ7OJILTYDQ3JZAVANCNFSM4KBFBZ7A>.
bbelderbos reacted with thumbs up emoji

Copy link
Member

Thank you both for keeping this one fresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /