Auth fix + Registration Clarity (#3590)

* clarify auth flow

* k

* nit

* k

* fix typing
This commit is contained in:
pablonyx
2025-01-05 18:17:45 -08:00
committed by GitHub
parent e100a5e965
commit c8090ab75b
6 changed files with 31 additions and 10 deletions

View File

@@ -40,21 +40,24 @@ def send_email(
def send_user_email_invite(user_email: str, current_user: User) -> None:
subject = "Invitation to Join Onyx Workspace"
subject = "Invitation to Join Onyx Organization"
body = dedent(
f"""\
Hello,
You have been invited to join a workspace on Onyx.
You have been invited to join an organization on Onyx.
To join the workspace, please visit the following link:
To join the organization, please visit the following link:
{WEB_DOMAIN}/auth/login
{WEB_DOMAIN}/auth/signup?email={user_email}
You'll be asked to set a password or login with Google to complete your registration.
Best regards,
The Onyx Team
"""
)
send_email(user_email, subject, body, current_user.email)