Skip to content

Commit

Permalink
error validation temp user return msg if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Jun 1, 2023
1 parent 5354ab2 commit c575742
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/geonature/core/users/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def confirmation():
)

if r.status_code != 200:
if r.json() and r.json().get('msg'):
return r.json().get('msg'), r.status_code
return Response(r), r.status_code

new_user = r.json()
Expand Down

0 comments on commit c575742

Please sign in to comment.