db is persistent now

multi-deployment
b3yond 2018-03-22 11:32:43 +01:00
parent 9e09dcea84
commit 235b8524f8
1 changed files with 1 additions and 0 deletions

1
db.py
View File

@ -110,6 +110,7 @@ class DB(object):
# create user
self.cur.execute("INSERT INTO user (email, passhash) VALUES(?, ?);",
(json['email'], json['passhash']))
self.conn.commit()
return User(self, self.cur.lastrowid)
def authenticate(self, email, password):