Merge pull request #146 from bergzand/patch-1
Fix issue #133. Store hash as '*' for external users
This commit is contained in:
commit
0f48b41c90
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue