Documentation
¶
Overview ¶
Package mails implements various helper methods for sending common emails like forgotten password, verification, etc.
Index ¶
- func SendRecordAuthAlert(app core.App, authRecord *core.Record) error
- func SendRecordChangeEmail(app core.App, authRecord *core.Record, newEmail string) error
- func SendRecordOTP(app core.App, authRecord *core.Record, otpId string, pass string) error
- func SendRecordPasswordReset(app core.App, authRecord *core.Record) error
- func SendRecordVerification(app core.App, authRecord *core.Record) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendRecordAuthAlert ¶
SendRecordAuthAlert sends a new device login alert to the specified auth record.
func SendRecordChangeEmail ¶
SendRecordChangeEmail sends a change email confirmation email to the specified auth record.
func SendRecordOTP ¶
SendRecordOTP sends OTP email to the specified auth record.
This method will also update the "sentTo" field of the related OTP record to the mail sent To address (if the OTP exists and not already assigned).
func SendRecordPasswordReset ¶
SendRecordPasswordReset sends a password reset request email to the specified auth record.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.