db is persistent now
This commit is contained in:
parent
9e09dcea84
commit
235b8524f8
1
db.py
1
db.py
|
@ -110,6 +110,7 @@ class DB(object):
|
||||||
# create user
|
# create user
|
||||||
self.cur.execute("INSERT INTO user (email, passhash) VALUES(?, ?);",
|
self.cur.execute("INSERT INTO user (email, passhash) VALUES(?, ?);",
|
||||||
(json['email'], json['passhash']))
|
(json['email'], json['passhash']))
|
||||||
|
self.conn.commit()
|
||||||
return User(self, self.cur.lastrowid)
|
return User(self, self.cur.lastrowid)
|
||||||
|
|
||||||
def authenticate(self, email, password):
|
def authenticate(self, email, password):
|
||||||
|
|
Loading…
Reference in a new issue