Skip to content

Commit

Permalink
fix validation of newly registered users
Browse files Browse the repository at this point in the history
  • Loading branch information
bouttier committed Nov 10, 2022
1 parent 4bea68e commit 1448c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/geonature/core/users/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def confirmation():
def after_confirmation():
data = dict(request.get_json())
type_action = "valid_temp_user"
after_confirmation_fn = function_dict.get(type_action, None)
after_confirmation_fn = REGISTER_POST_ACTION_FCT.get(type_action, None)
result = after_confirmation_fn(data)
if result != 0 and result["msg"] != "ok":
msg = f"Problem in GeoNature API after confirmation {type_action} : {result['msg']}"
Expand Down

0 comments on commit 1448c72

Please sign in to comment.