Skip to content
Snippets Groups Projects

Resolve "Allow CLI to set password"

Compare and Show latest version
1 file
+ 7
5
Compare changes
  • Side-by-side
  • Inline
+ 7
5
@@ -60,9 +60,9 @@ class KratosUser():
def __repr__(self):
return f"\"{self.name}\" <{self.email}>"
@property uuid
@property
def uuid(self):
"""Gets the protected UUID propery"""
return self.__uuid
def save(self):
@@ -114,15 +114,17 @@ class KratosUser():
self.api.admin_delete_identity(self.__uuid)
return True
except KratosApiException as error:
raise BackendError(f"Unable to delete entry, kratos replied with:{error}") from error
raise BackendError(
f"Unable to delete entry, kratos replied with: {error}"
) from error
return False
@staticmethod
def find_by_email(api, email):
"""Queries Kratos to find kratos ID for this given identifier
:param: api Kratos ADMIN API Object
:param: email Identifier to look for
:param api: Kratos ADMIN API Object
:param email: Identifier to look for
:return: Return none or string with ID
"""
Loading