fix: Wecom scan code login failed

This commit is contained in:
wangruidong
2026-07-13 15:18:06 +08:00
committed by Jiangjie Bai
parent a7a0302583
commit 2135a184c9

View File

@@ -102,8 +102,6 @@ class BaseLoginCallbackView(AuthMixin, FlashMessageMixin, IMClientMixin, View):
user, err = self.create_user_if_not_exist(user_id, other_info=other_info)
if err is not None:
response = self.get_failed_response(login_url, title=err[0], msg=err[1])
if getattr(request, 'user_need_delete', False):
user.delete()
return response
try: