mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-12-26 22:38:58 +00:00
static URLs are exempt from auth requirement
This commit is contained in:
parent
e66c0fcbd7
commit
b3ca199167
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ scopes_pleroma = ['read', 'write', 'push']
|
|||
|
||||
@app.before_request
|
||||
def login_check():
|
||||
if request.path not in ['/', '/about', '/welcome', '/login', '/signup', '/do/login', '/do/signup', '/static/style.css'] and not request.path.startswith("/push"):
|
||||
if request.path not in ['/', '/about', '/welcome', '/login', '/signup', '/do/login', '/do/signup'] and not request.path.startswith("/push") and not request.path.startswith('/static'):
|
||||
# page requires authentication
|
||||
if 'user_id' not in session:
|
||||
return redirect(url_for('render_home'))
|
||||
|
|
Loading…
Reference in a new issue