mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
fix login redirect logic
This commit is contained in:
@ -323,10 +323,7 @@ class LoginRedirect(RedirectView):
|
|||||||
|
|
||||||
def get_redirect_url(self, *args, **kwargs):
|
def get_redirect_url(self, *args, **kwargs):
|
||||||
"""Return the URL to redirect to."""
|
"""Return the URL to redirect to."""
|
||||||
session = self.request.session
|
|
||||||
if session.get('preferred_method', 'cui') == 'pui':
|
|
||||||
return f'/{FRONTEND_URL_BASE}/logged-in/'
|
return f'/{FRONTEND_URL_BASE}/logged-in/'
|
||||||
return '/index/'
|
|
||||||
|
|
||||||
|
|
||||||
user_urls = [
|
user_urls = [
|
||||||
|
Reference in New Issue
Block a user