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

Fix: New created users will have unusable password #399

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

Conversation

@pandafy
Copy link
Contributor

@pandafy pandafy commented Feb 15, 2024
edited
Loading

Closes #398

nemesifier reacted with thumbs up emoji
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@peppelinux peppelinux peppelinux approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Set unusable password for new created users

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