fix(2fa): fixed redirect loop in workflow when password reset was done.
This commit is contained in:
parent
566e572fff
commit
a36b846e92
2 changed files with 12 additions and 6 deletions
|
|
@ -144,6 +144,7 @@ class BaseAppView(object):
|
|||
skip_user_views = [
|
||||
"logout",
|
||||
"login",
|
||||
"check_2fa",
|
||||
"my_account_password",
|
||||
"my_account_password_update",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import urllib.parse
|
|||
from webob.exc import HTTPNotFound
|
||||
|
||||
import rhodecode
|
||||
from rhodecode.apps._base import ADMIN_PREFIX
|
||||
from rhodecode.lib.middleware.utils import get_path_info
|
||||
from rhodecode.lib.middleware.appenlight import wrap_in_appenlight_if_enabled
|
||||
from rhodecode.lib.middleware.simplegit import SimpleGit, GIT_PROTO_PAT
|
||||
|
|
@ -164,14 +165,18 @@ def detect_vcs_request(environ, backends):
|
|||
# login
|
||||
"_admin/login",
|
||||
|
||||
# 2fa
|
||||
f"{ADMIN_PREFIX}/check_2fa",
|
||||
f"{ADMIN_PREFIX}/setup_2fa",
|
||||
|
||||
# _admin/api is safe too
|
||||
'_admin/api',
|
||||
f'{ADMIN_PREFIX}/api',
|
||||
|
||||
# _admin/gist is safe too
|
||||
'_admin/gists++',
|
||||
f'{ADMIN_PREFIX}/gists++',
|
||||
|
||||
# _admin/my_account is safe too
|
||||
'_admin/my_account++',
|
||||
f'{ADMIN_PREFIX}/my_account++',
|
||||
|
||||
# static files no detection
|
||||
'_static++',
|
||||
|
|
@ -180,11 +185,11 @@ def detect_vcs_request(environ, backends):
|
|||
'_debug_toolbar++',
|
||||
|
||||
# skip ops ping, status
|
||||
'_admin/ops/ping',
|
||||
'_admin/ops/status',
|
||||
f'{ADMIN_PREFIX}/ops/ping',
|
||||
f'{ADMIN_PREFIX}/ops/status',
|
||||
|
||||
# full channelstream connect should be VCS skipped
|
||||
'_admin/channelstream/connect',
|
||||
f'{ADMIN_PREFIX}/channelstream/connect',
|
||||
|
||||
'++/repo_creating_check'
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue