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

Method GenerateEmailActivateCode

internal/database/issue_mail.go:38–46  ·  view source on GitHub ↗
(email string)

Source from the content-addressed store, hash-verified

36}
37
38func (mu mailerUser) GenerateEmailActivateCode(email string) string {
39 return userutil.GenerateActivateCode(
40 mu.user.ID,
41 email,
42 mu.user.Name,
43 mu.user.Password,
44 mu.user.Rands,
45 )
46}
47
48func (mu mailerUser) GenerateEmailResetPasswordCode(email string) string {
49 return userutil.GenerateResetPasswordCode(

Callers

nothing calls this directly

Calls 1

GenerateActivateCodeFunction · 0.92

Tested by

no test coverage detected