Skip to content
Snippets Groups Projects
Commit 4197fde5 authored by Mart van Santen's avatar Mart van Santen
Browse files

Rename function as its not a get function

parent 2390ea99
No related branches found
No related tags found
1 merge request!94Resolve "As admin, create recovery links from dashboard"
Pipeline #38366 passed with stages
in 2 minutes and 58 seconds
......@@ -35,7 +35,7 @@ class UserService:
return UserService.__insertAppRoleToUser(id, res)
@staticmethod
def get_recovery(id):
def create_recovery_link(id):
kratos_data = {
"identity_id": id
}
......
......@@ -33,7 +33,7 @@ def get_user(id):
@cross_origin()
@admin_required()
def get_user_recovery(id):
res = UserService.get_recovery(id)
res = UserService.create_recovery_link(id)
return jsonify(res)
@api_v1.route("/users", methods=["POST"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment