diff --git a/yunohost.tac b/yunohost.tac index af917180..b3d1ac61 100755 --- a/yunohost.tac +++ b/yunohost.tac @@ -42,8 +42,10 @@ def http_exec(request, **kwargs): # Simple HTTP auth elif installed: - authorized = request.getUser() == 'admin' + authorized = False pwd = request.getPassword() + if request.getUser() == 'admin' and pwd != '': + authorized = True if dev and 'api_key' in request.args: pwd = request.args['api_key'][0] authorized = True