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

Function GenerateActivateCode

internal/userutil/userutil.go:36–38  ·  view source on GitHub ↗

GenerateActivateCode generates an activate code based on user information and the given email.

(userID int64, email, name, password, rands string)

Source from the content-addressed store, hash-verified

34// GenerateActivateCode generates an activate code based on user information and
35// the given email.
36func GenerateActivateCode(userID int64, email, name, password, rands string) string {
37 return generateTimeLimitedUserCode(userID, email, name, password, rands, conf.Auth.ActivateCodeLives)
38}
39
40// GenerateResetPasswordCode generates a password-reset code based on user
41// information and the given email. The token's lifetime is bound to

Callers 2

TestGenerateActivateCodeFunction · 0.85

Calls 1

Tested by 1

TestGenerateActivateCodeFunction · 0.68