Documentation ¶
Index ¶
- Variables
- func SendBindCaptchaEmail(userID, userEmail string) error
- func SendRetrievePasswordCaptchaEmail(userID, email, host string) error
- func SendSignupCaptchaEmail(email string) error
- func SendTestEmail(username, email string) error
- func VerifyBindCaptchaEmail(userID, userEmail, captcha string) (bool, error)
- func VerifyRetrievePasswordCaptchaEmail(userID, email, captcha string) (bool, error)
- func VerifySignupCaptchaEmail(email, captcha string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnableEmail = settings.NewBoolSetting( "enable_email", false, model.SettingGroupEmail, settings.WithAfterSetBool(func(bs settings.BoolSetting, b bool) { if !b { closeSmtpPool() } }), ) DisableUserSignup = settings.NewBoolSetting( "email_disable_user_signup", false, model.SettingGroupEmail, ) SignupNeedReview = settings.NewBoolSetting( "email_signup_need_review", false, model.SettingGroupEmail, ) EmailSignupWhiteListEnable = settings.NewBoolSetting( "email_signup_white_list_enable", false, model.SettingGroupEmail, ) EmailSignupWhiteList = settings.NewStringSetting( "email_signup_white_list", `gmail.com,qq.com,163.com,yahoo.com,sina.com,126.com,outlook.com,yeah.net,foxmail.com`, model.SettingGroupEmail, ) )
View Source
var (
ErrEmailNotEnabled = errors.New("email is not enabled")
)
Functions ¶
func SendBindCaptchaEmail ¶
func SendSignupCaptchaEmail ¶
func SendTestEmail ¶
func VerifyBindCaptchaEmail ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.