mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 03:49:00 +00:00
perf: 修改变量名
This commit is contained in:
parent
7926f7d75e
commit
c5b8ae6c9a
@ -86,10 +86,10 @@ class OAuth2EndSessionView(View):
|
|||||||
logger.debug(log_prompt.format('Log out the current user: {}'.format(request.user)))
|
logger.debug(log_prompt.format('Log out the current user: {}'.format(request.user)))
|
||||||
auth.logout(request)
|
auth.logout(request)
|
||||||
|
|
||||||
next_url = settings.AUTH_OAUTH2_PROVIDER_END_SESSION_ENDPOINT
|
logout_url = settings.AUTH_OAUTH2_PROVIDER_END_SESSION_ENDPOINT
|
||||||
if settings.AUTH_OAUTH2_LOGOUT_COMPLETELY and next_url:
|
if settings.AUTH_OAUTH2_LOGOUT_COMPLETELY and logout_url:
|
||||||
logger.debug(log_prompt.format('Log out OAUTH2 platform user session synchronously'))
|
logger.debug(log_prompt.format('Log out OAUTH2 platform user session synchronously'))
|
||||||
return HttpResponseRedirect(next_url)
|
return HttpResponseRedirect(logout_url)
|
||||||
|
|
||||||
logger.debug(log_prompt.format('Redirect'))
|
logger.debug(log_prompt.format('Redirect'))
|
||||||
return HttpResponseRedirect(logout_url)
|
return HttpResponseRedirect(logout_url)
|
||||||
|
Loading…
Reference in New Issue
Block a user