perf: 修改变量名

pull/9496/head
jiangweidong 2023-02-09 11:22:58 +08:00 committed by Jiangjie.Bai
parent 7926f7d75e
commit c5b8ae6c9a
1 changed files with 3 additions and 3 deletions

View File

@ -86,10 +86,10 @@ class OAuth2EndSessionView(View):
logger.debug(log_prompt.format('Log out the current user: {}'.format(request.user)))
auth.logout(request)
next_url = settings.AUTH_OAUTH2_PROVIDER_END_SESSION_ENDPOINT
if settings.AUTH_OAUTH2_LOGOUT_COMPLETELY and next_url:
logout_url = settings.AUTH_OAUTH2_PROVIDER_END_SESSION_ENDPOINT
if settings.AUTH_OAUTH2_LOGOUT_COMPLETELY and logout_url:
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'))
return HttpResponseRedirect(logout_url)