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

Add username to overview

parent 121ed73f
No related branches found
No related tags found
2 merge requests!68Merge loginpanel into main and release 0.5.0,!65Resolve "Use kratos id as subject during login"
...@@ -170,10 +170,11 @@ def show_user(email): ...@@ -170,10 +170,11 @@ def show_user(email):
user = KratosUser.find_by_email(KRATOS_ADMIN, email) user = KratosUser.find_by_email(KRATOS_ADMIN, email)
print(user) print(user)
print("") print("")
print(f"UUID: {user.uuid}") print(f"UUID: {user.uuid}")
print(f"Updated: {user.updated_at}") print(f"Username: {user.username}")
print(f"Created: {user.created_at}") print(f"Updated: {user.updated_at}")
print(f"State: {user.state}") print(f"Created: {user.created_at}")
print(f"State: {user.state}")
@user_cli.command('update') @user_cli.command('update')
@click.argument('email') @click.argument('email')
......
...@@ -23,6 +23,7 @@ from ory_kratos_client.rest import ApiException as KratosApiException ...@@ -23,6 +23,7 @@ from ory_kratos_client.rest import ApiException as KratosApiException
from exceptions import BackendError from exceptions import BackendError
from classes import RedirectFilter from classes import RedirectFilter
# pylint: disable=too-many-instance-attributes
class KratosUser(): class KratosUser():
""" """
The User object, interact with the User. It both calls to Kratos as to The User object, interact with the User. It both calls to Kratos as to
......
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