Patch
parent
e13de02143
commit
e32324ea6b
|
@ -29,7 +29,7 @@ class User(UserMixin, db.Model):
|
|||
if user is None:
|
||||
user = cls(username=username)
|
||||
db.session.add(user)
|
||||
user.password = hasher.hash(password)
|
||||
user.password = hasher.hash(password)
|
||||
db.session.commit()
|
||||
return user
|
||||
|
||||
|
|
Loading…
Reference in New Issue