Skip to content

Commit

Permalink
Update admin button for getting login url to include user email
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Dec 17, 2024
1 parent 88aa8c3 commit 741e9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/khoj/database/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_email_login_url(self, request, queryset):
if user.email:
host = request.get_host()
unique_id = user.email_verification_code
login_url = f"{host}/auth/magic?code={unique_id}"
login_url = f"{host}/auth/magic?code={unique_id}&email={user.email}"
messages.info(request, f"Email login URL for {user.email}: {login_url}")

get_email_login_url.short_description = "Get email login URL" # type: ignore
Expand Down

0 comments on commit 741e9f5

Please sign in to comment.