Fixed an issue where master password was not set correctly with external config database. #5603

This commit is contained in:
Akshay Joshi 2022-12-05 16:21:32 +05:30
parent d3f5e6e931
commit 14d29c7a92
2 changed files with 3 additions and 2 deletions

View File

@ -26,3 +26,4 @@ Bug fixes
| `Issue #5453 <https://github.com/pgadmin-org/pgadmin4/issues/5453>`_ - Fixed an issue where Transaction IDs were not found in session in the Query Tool.
| `Issue #5564 <https://github.com/pgadmin-org/pgadmin4/issues/5564>`_ - Ensure that table statistics are sorted by size.
| `Issue #5603 <https://github.com/pgadmin-org/pgadmin4/issues/5603>`_ - Fixed an issue where master password was not set correctly with external config database.

View File

@ -92,10 +92,10 @@ class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(256), nullable=True)
username = db.Column(db.String(64), unique=True, nullable=False)
password = db.Column(db.String(256))
password = db.Column(PgAdminDbBinaryString())
active = db.Column(db.Boolean(), nullable=False)
confirmed_at = db.Column(db.DateTime())
masterpass_check = db.Column(db.String(256))
masterpass_check = db.Column(PgAdminDbBinaryString())
roles = db.relationship('Role', secondary=roles_users,
backref=db.backref('users', lazy='dynamic'))
auth_source = db.Column(db.String(16), unique=True, nullable=False)