|
@@ -86,8 +86,10 @@ def used_key_count():
|
|
def login(username, password):
|
|
def login(username, password):
|
|
connect()
|
|
connect()
|
|
|
|
|
|
- # do not allow login as bank
|
|
|
|
- if password == '':
|
|
|
|
|
|
+ # do not allow login as bank or with empty password
|
|
|
|
+ if username == 'bank' and not debug:
|
|
|
|
+ return None
|
|
|
|
+ if password == '' and not debug:
|
|
return None
|
|
return None
|
|
|
|
|
|
cursor.execute('''
|
|
cursor.execute('''
|