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

@@change_password view broken by change to bcrypt #315

Closed
tseaver opened this issue Sep 1, 2024 · 0 comments · Fixed by #316
Closed

@@change_password view broken by change to bcrypt #315

tseaver opened this issue Sep 1, 2024 · 0 comments · Fixed by #316
Assignees
Labels

Comments

@tseaver
Copy link
Member

tseaver commented Sep 1, 2024

  File "/home/tseaver/projects/byelizabeth/substanced-buildout/src/substanced/substanced/principal/views.py", line 129, in change_success
    if not self.request.user.check_password(current_user_password):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tseaver/projects/byelizabeth/substanced-buildout/src/substanced/substanced/principal/__init__.py", line 420, in check_password
    return bcrypt.checkpw(password, self.password)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument 'hashed_password': 'str' object cannot be converted to 'PyBytes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant