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

Processed comments

parent 6cf6138c
No related branches found
No related tags found
2 merge requests!68Merge loginpanel into main and release 0.5.0,!60Resolve "Allow CLI to set password"
...@@ -104,7 +104,7 @@ class User(db.Model): ...@@ -104,7 +104,7 @@ class User(db.Model):
@staticmethod @staticmethod
def get_recovery_link(api, kratos_id): def get_recovery_link(api, kratos_id):
"""Queries Kratos to find kratos ID for this given identifier """Call the kratos API to create a recovery URL for a kratos ID
:param: api Kratos ADMIN API Object :param: api Kratos ADMIN API Object
:param: kratos_id UUID of kratos object :param: kratos_id UUID of kratos object
:return: Return none or string with recovery URL :return: Return none or string with recovery URL
...@@ -148,7 +148,7 @@ class User(db.Model): ...@@ -148,7 +148,7 @@ class User(db.Model):
cookie_csrf = search.group(1) cookie_csrf = search.group(1)
if not cookie_csrf or not cookie_session: if not cookie_csrf or not cookie_session:
raise Exception("Flow started, but expected cookies not found") raise BackendError("Flow started, but expected cookies not found")
# Combined the relevant cookies # Combined the relevant cookies
cookie = cookie_csrf + "; " + cookie_session cookie = cookie_csrf + "; " + cookie_session
......
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