mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2026-09-22 19:11:15 +08:00
[RTOP-26] Update webserver/restapi.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
d364456f24
commit
cd0c61ee60
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user