fix account confirmation.
This commit is contained in:
parent
4850860f82
commit
9339015101
2
db.py
2
db.py
|
@ -123,7 +123,7 @@ class DB(object):
|
||||||
return None # invalid token
|
return None # invalid token
|
||||||
if 'passhash' in json.keys():
|
if 'passhash' in json.keys():
|
||||||
# create user
|
# create user
|
||||||
self.execute("INSERT INTO user (passhash) VALUES(?, ?);",
|
self.execute("INSERT INTO user (passhash) VALUES(?);",
|
||||||
(json['passhash'], ))
|
(json['passhash'], ))
|
||||||
uid = self.cur.lastrowid
|
uid = self.cur.lastrowid
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue