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