GenerateActivateCode generates an activate code based on user information and the given email.
(userID int64, email, name, password, rands string)
| 34 | // GenerateActivateCode generates an activate code based on user information and |
| 35 | // the given email. |
| 36 | func 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 |