From ce806e52ed211726f8aa0726e1339647153bc913 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Fri, 27 Mar 2026 21:32:48 -0400 Subject: [PATCH] fix: google-add now also sets profile.json email The invite command reads email from profile.json, not auth.json. google-add was only writing to auth.json so invite had no address to send to. Now calls set_email() as well. Co-Authored-By: Claude Sonnet 4.6 --- cortex/manage_passwords.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cortex/manage_passwords.py b/cortex/manage_passwords.py index 45d3428..04eb34e 100644 --- a/cortex/manage_passwords.py +++ b/cortex/manage_passwords.py @@ -163,8 +163,9 @@ def cmd_google_add(args): # Ensure the user directory exists (settings.home_root() / username).mkdir(parents=True, exist_ok=True) - # Store email; google_sub will be filled in on first sign-in + # Store in auth.json (google_sub filled in on first sign-in) + profile.json (for invites) link_google(username, sub="", email=email) + set_email(username, email) print(f"Google sign-in registered for {username!r}: {email}") print(f"They can now sign in at {settings.cortex_base_url}/login using that Google account.")