MCPcopy Create free account
hub / github.com/gogs/gogs / SendResetPasswordMail

Function SendResetPasswordMail

internal/email/email.go:125–127  ·  view source on GitHub ↗
(c *macaron.Context, u User)

Source from the content-addressed store, hash-verified

123}
124
125func SendResetPasswordMail(c *macaron.Context, u User) {
126 SendUserMail(c, u, tmplAuthResetPassword, u.GenerateEmailResetPasswordCode(u.Email()), c.Tr("mail.reset_password"), "reset password")
127}
128
129// SendActivateAccountMail sends confirmation email.
130func SendActivateEmailMail(c *macaron.Context, u User, email string) {

Callers 1

ForgotPasswdPostFunction · 0.92

Calls 4

SendUserMailFunction · 0.85
TrMethod · 0.80
EmailMethod · 0.65

Tested by

no test coverage detected