(userID int64, email, name, password, rands string, minutes int)
| 45 | } |
| 46 | |
| 47 | func generateTimeLimitedUserCode(userID int64, email, name, password, rands string, minutes int) string { |
| 48 | code := tool.CreateTimeLimitCode( |
| 49 | fmt.Sprintf("%d%s%s%s%s", userID, email, strings.ToLower(name), password, rands), |
| 50 | minutes, |
| 51 | nil, |
| 52 | ) |
| 53 | |
| 54 | // Add tailing hex username |
| 55 | code += hex.EncodeToString([]byte(strings.ToLower(name))) |
| 56 | return code |
| 57 | } |
| 58 | |
| 59 | // CustomAvatarPath returns the absolute path of the user custom avatar file. |
| 60 | func CustomAvatarPath(userID int64) string { |
no test coverage detected