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

Password Setter procedure has changed #113

Open
AlanSwenson opened this issue Mar 5, 2019 · 2 comments
Open

Password Setter procedure has changed #113

AlanSwenson opened this issue Mar 5, 2019 · 2 comments

Comments

@AlanSwenson
Copy link

This no longer works:

@password.setter
def _set_password(self, plaintext):
      self._password = bcrypt.generate_password_hash(plaintext)

Should be:

@password.setter
def password(self, plaintext):
      self._password = bcrypt.generate_password_hash(plaintext)

https://docs.sqlalchemy.org/en/latest/orm/extensions/hybrid.html

@AlanSwenson
Copy link
Author

I can submit a PR if this is acceptable.

@AlanSwenson
Copy link
Author

#112 is the PR for this fix

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

No branches or pull requests

1 participant