TwoFactorCacheKey returns the key used for caching two factor passcode.
(userID int64, passcode string)
| 138 | |
| 139 | // TwoFactorCacheKey returns the key used for caching two factor passcode. |
| 140 | func TwoFactorCacheKey(userID int64, passcode string) string { |
| 141 | return fmt.Sprintf("twoFactor::%d::%s", userID, passcode) |
| 142 | } |
| 143 | |
| 144 | // RandomSalt returns randomly generated 10-character string that can be used as |
| 145 | // the user salt. |
no outgoing calls