diff --git a/src/khoj/configure.py b/src/khoj/configure.py index df0760fb..a1f4a7db 100644 --- a/src/khoj/configure.py +++ b/src/khoj/configure.py @@ -168,12 +168,6 @@ class UserAuthenticationBackend(AuthenticationBackend): if create_if_not_exists: user, is_new = await aget_or_create_user_by_phone_number(phone_number) if user and is_new: - update_telemetry_state( - request=request, - telemetry_type="api", - api="create_user", - metadata={"server_id": str(user.uuid)}, - ) logger.log(logging.INFO, f"🥳 New User Created: {user.uuid}") else: user = await aget_user_by_phone_number(phone_number) diff --git a/src/khoj/database/admin.py b/src/khoj/database/admin.py index b4059e8c..f7c140c1 100644 --- a/src/khoj/database/admin.py +++ b/src/khoj/database/admin.py @@ -78,7 +78,12 @@ class KhojUserAdmin(UserAdmin): search_fields = ("email", "username", "phone_number", "uuid") filter_horizontal = ("groups", "user_permissions") - fieldsets = (("Personal info", {"fields": ("phone_number", "email_verification_code")}),) + UserAdmin.fieldsets + fieldsets = ( + ( + "Personal info", + {"fields": ("phone_number", "email_verification_code", "verified_phone_number", "verified_email")}, + ), + ) + UserAdmin.fieldsets actions = ["get_email_login_url"]