Skip to content
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

Fix: New created users will have unusable password #399

Merged

Conversation

pandafy
Copy link
Contributor

@pandafy pandafy commented Feb 15, 2024

Closes #398

@pandafy pandafy marked this pull request as ready for review February 15, 2024 10:24
Comment on lines +465 to +467
# Since a new user object is created, the password
# field is set to have an unusable password.
self.assertEqual(user.has_usable_password(), False)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@peppelinux I piggy backed on an existing test case to verify that new user will have an unusable password. No change would be made for user objects where password is already set.

@pandafy pandafy force-pushed the set-unusable-password-on-create branch from 1d1508b to 7699475 Compare February 15, 2024 10:30
@pandafy pandafy changed the title Added failing test for setting unusable password on created user objects Fix: New created users will have unusable password Feb 15, 2024
@peppelinux peppelinux merged commit 1be7946 into IdentityPython:master Feb 15, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set unusable password for new created users
2 participants