diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-29 18:07:23 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-29 18:07:23 +0100 |
commit | 6353ac29e93877aa840ace90b0c4ce9bea7db313 (patch) | |
tree | 817b0ed8df831aeea52719e7d3fff664af73c634 /app/models.py | |
parent | a4b583bac50dd00908e0ca38d4f79f3d01c02497 (diff) | |
download | cheatdb-6353ac29e93877aa840ace90b0c4ce9bea7db313.tar.xz |
Add set password form
Diffstat (limited to 'app/models.py')
-rw-r--r-- | app/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models.py b/app/models.py index fbd8bad..67a6677 100644 --- a/app/models.py +++ b/app/models.py @@ -97,7 +97,7 @@ class User(db.Model, UserMixin): # User authentication information username = db.Column(db.String(50), nullable=False, unique=True) - password = db.Column(db.String(255), nullable=False, server_default="") + password = db.Column(db.String(255), nullable=True) reset_password_token = db.Column(db.String(100), nullable=False, server_default="") rank = db.Column(db.Enum(UserRank)) |