Skip to content
Snippets Groups Projects

Resolve "Allow CLI to set password"

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -104,7 +104,7 @@ class User(db.Model):
@staticmethod
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: kratos_id UUID of kratos object
:return: Return none or string with recovery URL
@@ -148,7 +148,7 @@ class User(db.Model):
cookie_csrf = search.group(1)
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
cookie = cookie_csrf + "; " + cookie_session
Loading