Mail¶
-
class
keg_auth.mail.AuthMailManager(mail_ext)¶ Manager to handle sending auth-related mail via a flask-mail extension.
Pass the mail extension in the constructor.
-
new_user_message(user)¶ Creates message from new_user_templates with the given user.
-
reset_password_message(user)¶ Creates message from reset_password_template with the given user.
-
reset_password_url(user)¶ Returns URL to use in mail for password reset for the given user.
-
send_new_user(user)¶ Send account creation email from new_user_message with the given user.
-
send_reset_password(user)¶ Send password reset email from reset_password_message with the given user.
-
verify_account_url(user)¶ Returns URL to use in mail for account verification for the given user.
-