Skip to content

Commit

Permalink
Merge branch 'feat/account-deletion' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
GareArc committed Dec 25, 2024
2 parents f0991ae + 02ec5c9 commit 02a73cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/controllers/console/auth/forgot_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def post(self):
except WorkSpaceNotAllowedCreateError:
pass
except AccountRegisterError as re:
return AccountOnRegisterError(description=str(re))
raise AccountOnRegisterError(description=str(re))

return {"result": "success"}

Expand Down
2 changes: 1 addition & 1 deletion api/controllers/console/auth/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def post(self):
except WorkSpaceNotAllowedCreateError:
return NotAllowedCreateWorkspace()
except AccountRegisterError as re:
return AccountOnRegisterError(description=str(re))
raise AccountOnRegisterError(description=str(re))
token_pair = AccountService.login(account, ip_address=extract_remote_ip(request))
AccountService.reset_login_error_rate_limit(args["email"])
return {"result": "success", "data": token_pair.model_dump()}
Expand Down

0 comments on commit 02a73cd

Please sign in to comment.