Merge pull request #146 from bergzand/patch-1

Fix issue #133. Store hash as '*' for external users
This commit is contained in:
Khanh Ngo 2016-12-10 12:03:06 +07:00 committed by GitHub
commit 77ddfd4391

View File

@ -242,6 +242,10 @@ class User(db.Model):
We will create a local user (in DB) in order to manage user
profile such as name, roles,...
"""
# Set an invalid password hash for non local users
self.password = '*'
db.session.add(self)
db.session.commit()