mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-22 15:54:26 +00:00
Fixed improper redirection from login page when base_url isn't empty.
This commit is contained in:
parent
4d11b9580c
commit
ad16acb88f
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ def check_login(actual_method):
|
||||||
def catch_all(path):
|
def catch_all(path):
|
||||||
if path.startswith('login') and settings.auth.type not in ['basic', 'form']:
|
if path.startswith('login') and settings.auth.type not in ['basic', 'form']:
|
||||||
# login page has been accessed when no authentication is enabled
|
# login page has been accessed when no authentication is enabled
|
||||||
return redirect('/', code=302)
|
return redirect(base_url or "/", code=302)
|
||||||
|
|
||||||
auth = True
|
auth = True
|
||||||
if settings.auth.type == 'basic':
|
if settings.auth.type == 'basic':
|
||||||
|
|
Loading…
Reference in a new issue