mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-27 09:51:17 -05:00
Allow static resources without basic auth
This commit is contained in:
parent
41be429b91
commit
7ac81e6b7e
@ -142,6 +142,11 @@ class Web(object):
|
||||
|
||||
@self.app.before_request
|
||||
def conditional_auth_check():
|
||||
# Allow static files without basic authentication
|
||||
if(request.path.startswith(self.static_url_path + '/')):
|
||||
return None
|
||||
|
||||
# If public mode is disabled, require authentication
|
||||
if not self.common.settings.get('public_mode'):
|
||||
@self.auth.login_required
|
||||
def _check_login():
|
||||
|
Loading…
x
Reference in New Issue
Block a user