fix #1132
This commit is contained in:
@@ -134,7 +134,6 @@ def process_request(amount, confirmations, expires_in, password):
|
|||||||
def do_dump(password):
|
def do_dump(password):
|
||||||
if password != my_password:
|
if password != my_password:
|
||||||
return "wrong password"
|
return "wrong password"
|
||||||
|
|
||||||
conn = sqlite3.connect(database);
|
conn = sqlite3.connect(database);
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
# read pending requests from table
|
# read pending requests from table
|
||||||
@@ -144,6 +143,8 @@ def do_dump(password):
|
|||||||
|
|
||||||
|
|
||||||
def getrequest(oid, password):
|
def getrequest(oid, password):
|
||||||
|
if password != my_password:
|
||||||
|
return "wrong password"
|
||||||
oid = int(oid)
|
oid = int(oid)
|
||||||
conn = sqlite3.connect(database);
|
conn = sqlite3.connect(database);
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user