|
|
@ -19,6 +19,7 @@ class User(db.Model): |
|
|
|
def __init__(self, username=None, email=None, password=None): |
|
|
|
def __init__(self, username=None, email=None, password=None): |
|
|
|
self.username = username |
|
|
|
self.username = username |
|
|
|
self.email = email |
|
|
|
self.email = email |
|
|
|
|
|
|
|
if password: |
|
|
|
self.set_password(password) |
|
|
|
self.set_password(password) |
|
|
|
|
|
|
|
|
|
|
|
def set_password(self, password): |
|
|
|
def set_password(self, password): |
|
|
|