Skip to content

Commit

Permalink
fixup! fixup! fixup! [FIX] some permission problems; call super in or…
Browse files Browse the repository at this point in the history
…der to have regular password reset flow intact
  • Loading branch information
thomaspaulb committed Dec 3, 2024
1 parent 65fb9d8 commit cf4ed4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_sms_auth_signup/controllers/auth_sms_auth_signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def web_auth_reset_password(self, *args, **kw):
if request.httprequest.method == "POST" and kw.get("auth_sms_code"):
request.session["auth_sms.code"] = kw["auth_sms_code"]
try:
user.sudo(user)._auth_sms_check_credentials()
user.with_user(user)._auth_sms_check_credentials()
except Exception as e:
del request.session["auth_sms.code"]
qcontext["error"] = str(e)
Expand Down

0 comments on commit cf4ed4f

Please sign in to comment.