Event fixes
This commit is contained in:
1 parent
e4588a5e7e
commit
cfadd851bf
14 files changed
+115
-98
No files matched your search
@@ -17,7 +17,7 @@ def requires_auth(f):
|
||||
@wraps(f)
|
||||
def decorated(*args, **kwargs):
|
||||
auth = getattr(request, 'authorization')
|
||||
if Env.setting('username') and (not auth or not check_auth(auth.username, md5(auth.password))):
|
||||
if Env.setting('username') and Env.setting('password') and (not auth or not check_auth(auth.username, md5(auth.password))):
|
||||
return authenticate()
|
||||
|
||||
return f(*args, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user