Retrieving token via user/pass fixed
parent
073f7428d9
commit
31ef020f79
2
empire
2
empire
|
@ -1111,7 +1111,7 @@ def start_restful_api(startEmpire=False, suppress=False, username=None, password
|
||||||
# try to prevent some basic bruting
|
# try to prevent some basic bruting
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
if suppliedUsername == username and suppliedPassword == password:
|
if suppliedUsername == username[0] and suppliedPassword == password[0]:
|
||||||
return jsonify({'token': apiToken})
|
return jsonify({'token': apiToken})
|
||||||
else:
|
else:
|
||||||
return make_response('', 401)
|
return make_response('', 401)
|
||||||
|
|
Loading…
Reference in New Issue