Skip to content

Commit

Permalink
Explicitly specify generate_password_hash method which changed with w…
Browse files Browse the repository at this point in the history
…erkzeug 3.x
  • Loading branch information
manisandro committed Dec 9, 2023
1 parent c95627d commit 1cb46ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qwc_services_core/config_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class User(UserMixin, Base):
__table_args__ = ({"schema": "qwc_config"})

def set_password(self, password):
self.password_hash = generate_password_hash(password)
self.password_hash = generate_password_hash(password, method='pbkdf2')

def check_password(self, password):
return check_password_hash(self.password_hash, password)
Expand Down

0 comments on commit 1cb46ea

Please sign in to comment.