public void SetAuthorize(AccountAuthorizeInfo info) { var userId = info.LoginId; var client = info.Client; var value = JsonConvert.SerializeObject(info); cache.SetCache(UAER_PREFIX + "_" + client + "_" + userId, value, expiryTime); }
public string CreateUserToken(AccountAuthorizeInfo info) { string data = $"UAT|{info.LoginId}|{info.Client}|{info.Guid}"; return(encryptor.Encrypt(data)); }