Skip to content

Feature user change password#38

Merged
kbeker merged 13 commits intomasterfrom
feature-user-change-password
Apr 16, 2019
Merged

Feature user change password#38
kbeker merged 13 commits intomasterfrom
feature-user-change-password

Conversation

@MartynaAnnaGottschling
Copy link
Contributor

@MartynaAnnaGottschling MartynaAnnaGottschling commented Feb 19, 2019

Resolves #79
Resolves #104

Copy link
Contributor

@kbeker kbeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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']))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kbeker so in this case should I change the name of tests?

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 %}
Copy link
Contributor

@rwrzesien rwrzesien Feb 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rwrzesien I think it's: password_reset, password_reset_done, password_reset_confirm, password_reset_complete from django.contrib.auth.views

@rwrzesien
Copy link
Contributor

@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.

@maciejSamerdak maciejSamerdak added this to the tag 0.1.0 milestone Mar 4, 2019
@MartynaAnnaGottschling MartynaAnnaGottschling force-pushed the feature-user-change-password branch from d8f44d8 to ae48ae9 Compare March 18, 2019 11:13
@MartynaAnnaGottschling MartynaAnnaGottschling force-pushed the feature-user-change-password branch 2 times, most recently from 89eacab to 1d385b4 Compare March 29, 2019 10:28
Copy link
Contributor

@kbeker kbeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rwrzesien rwrzesien force-pushed the feature-user-change-password branch 2 times, most recently from 8a0cbf1 to 437f326 Compare April 4, 2019 22:46
@rwrzesien rwrzesien force-pushed the feature-user-change-password branch from 437f326 to cfe2b51 Compare April 15, 2019 00:33
@kbeker kbeker force-pushed the feature-user-change-password branch from cfe2b51 to 8a8b1cb Compare April 15, 2019 08:38
The 'users' app should be befor 'django.contrib.admin' in base.py
INSTALLED_APPS
@kbeker kbeker force-pushed the feature-user-change-password branch from 8a8b1cb to ea23b5d Compare April 16, 2019 08:13
@kbeker kbeker merged commit ea23b5d into master Apr 16, 2019
@kbeker kbeker deleted the feature-user-change-password branch April 16, 2019 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature user password managment Add mail server to sheetstorm

4 participants