1
This commit is contained in:
@@ -473,6 +473,7 @@ func GetTokenInfo(token string) (authInfo *AuthInfo, err error) {
|
||||
|
||||
func SetUserInfo(token string, authInfo *AuthInfo, duration time.Duration) {
|
||||
api.Cacher.Set(token, authInfo, DefTokenDuration)
|
||||
api.Cacher.Set(authInfo.Mobile, token, DefTokenDuration)
|
||||
}
|
||||
|
||||
func ClearUserToken(userID string) {
|
||||
|
||||
Reference in New Issue
Block a user