public string BuildToken(string usuario, string rol) { return(Tools.Base64Encode(CryptoManager.Encrypt($"{usuario}|{rol}|{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"))); }
public string BuildTokenold(LoginModel loginData) { return(Tools.Base64Encode(CryptoManager.Encrypt($"{loginData.UserField}|{loginData.PassField}|{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"))); }