From 35ccb3d1be47c62648967f9b51c54dc065501249 Mon Sep 17 00:00:00 2001 From: Mart van Santen <mart@greenhost.nl> Date: Fri, 3 Dec 2021 07:09:53 +0100 Subject: [PATCH] Processed comments --- login/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login/models.py b/login/models.py index 710f69b..f69d75a 100644 --- a/login/models.py +++ b/login/models.py @@ -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 -- GitLab