Skip to content

Commit

Permalink
Increases the User.password_hash column size to 162. This accounts fo…
Browse files Browse the repository at this point in the history
…r a recent werkzeug.security update to generate_password_hash, which moves to scrypt and defaults to 16 for the salt length. (#450)

Co-authored-by: Brian Hodges <[email protected]>
  • Loading branch information
bhodges-navapbc and Brian Hodges authored Mar 14, 2024
1 parent e00ea1c commit a604ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_monitoringdashboard/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class User(Base):
username = Column(String(250), unique=True, nullable=False)
"""Username for logging into the FMD."""

password_hash = Column(String(128), nullable=False)
password_hash = Column(String(162), nullable=False)
"""Hashed password."""

is_admin = Column(Boolean, default=False)
Expand Down

0 comments on commit a604ab8

Please sign in to comment.