From cd0c61ee60b3f7b4a963c612ea96de56d8f13ad3 Mon Sep 17 00:00:00 2001 From: Lucas Cordeiro Butzke <35704520+lucasbutzke@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:12:08 -0300 Subject: [PATCH] [RTOP-26] Update webserver/restapi.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- webserver/restapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver/restapi.py b/webserver/restapi.py index fe911ab..92556f6 100644 --- a/webserver/restapi.py +++ b/webserver/restapi.py @@ -27,7 +27,7 @@ db = SQLAlchemy(app_restapi) class User(db.Model): id: int = db.Column(db.Integer, primary_key=True) username: str = db.Column(db.Text, nullable=False, unique=True) - password_hash: str = db.Column(db.Text, nullable=False, unique=True) + password_hash: str = db.Column(db.Text, nullable=False) # Use PBKDF2 with SHA256 and 600,000 iterations for password hashing derivation_method: str = "pbkdf2:sha256:600000"