yasuki_web.notifications.notify_new_signup#

notify_new_signup(display_name, approve_url=None)[source]#

Email the admin that a new account is awaiting approval. Best-effort and silent if unset.

A no-op when SMTP is not configured. Catches and logs every send failure rather than raising: notifying the admin is incidental, and must never break or block a user’s sign-in.

Parameters:
display_namestr

The new account’s display name, shown in the email.

approve_urlstr, optional

A direct link to the admin dashboard, included in the body when given. Default None.