Conversation
6b7735a to
5f6da54
Compare
kbeker
left a comment
There was a problem hiding this comment.
Some minor changes, but I would like to see it again. How can I test it locally?
| self.assertTrue(CustomValidationErrorText.VALIDATION_ERROR_SIGNUP_PASSWORD_MESSAGE in | ||
| response.context['form'].errors.get('new_password2')) | ||
| self.assertFalse(self.user.check_password(data['new_password1'])) | ||
| self.assertTrue(self.user.check_password(data['old_password'])) |
There was a problem hiding this comment.
Besides, I think that test like this where you send request should be named test_integration... because it sets you django client to send request.
There was a problem hiding this comment.
@kbeker so in this case should I change the name of tests?
5f6da54 to
d8f44d8
Compare
| To initiate the password reset process for your {{ user.get_username }} Sheet Storm Account, | ||
| click the link below: | ||
|
|
||
| {{ protocol }}://127.0.0.1:8000{% url 'password_reset_confirm' uidb64=uid token=token %} |
There was a problem hiding this comment.
I know that in the all-auth templates it is done in this way, but it is much better to generate whole url in the backend and pass it to email template. The case is that page might work on a different host that 127.0.0.1:8000 and the email will still contain it. I can help you with that but I need to know which view is supposed to use this and other password_reset_* templates?
There was a problem hiding this comment.
@rwrzesien I think it's: password_reset, password_reset_done, password_reset_confirm, password_reset_complete from django.contrib.auth.views
|
@MartynaAnnaGottschling Looks good, but it would be much easier to review this pull request if you could create or link an issue for this. It is easier to read it in single place than from several commit messages. I am not sure but I think you are trying to use templates without telling views to use them. But as I have said, it would be easier to tell with issue description. |
d8f44d8 to
ae48ae9
Compare
89eacab to
1d385b4
Compare
kbeker
left a comment
There was a problem hiding this comment.
I can't see anything wrong in existing code, but there is no test for it. You should at least write one test to be sure that this mechanism flow works.
8a0cbf1 to
437f326
Compare
437f326 to
cfe2b51
Compare
cfe2b51 to
8a8b1cb
Compare
The 'users' app should be befor 'django.contrib.admin' in base.py INSTALLED_APPS
8a8b1cb to
ea23b5d
Compare
Resolves #79
Resolves #104