mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
commit
65270dba7b
1 changed files with 3 additions and 1 deletions
|
@ -42,8 +42,10 @@ def http_exec(request, **kwargs):
|
||||||
|
|
||||||
# Simple HTTP auth
|
# Simple HTTP auth
|
||||||
elif installed:
|
elif installed:
|
||||||
authorized = request.getUser() == 'admin'
|
authorized = False
|
||||||
pwd = request.getPassword()
|
pwd = request.getPassword()
|
||||||
|
if request.getUser() == 'admin' and pwd != '':
|
||||||
|
authorized = True
|
||||||
if dev and 'api_key' in request.args:
|
if dev and 'api_key' in request.args:
|
||||||
pwd = request.args['api_key'][0]
|
pwd = request.args['api_key'][0]
|
||||||
authorized = True
|
authorized = True
|
||||||
|
|
Loading…
Reference in a new issue