public void SetTenorAPIKey(string apiKey) { SetDefault("TenorAPIKey", WindowsCipherManager.Encrypt( apiKey, "TenorAPIKey")); }
public void SetCurrentUserLogin(string login) { if (CurrentUser.Login == login && CurrentUser.IsTemporary()) { return; } SetDefault("CurrentUserLogin", WindowsCipherManager.Encrypt( login, "CurrentUserLogin")); }
public void SetUserId(string login, int id) { if (CurrentUser.Login == login && CurrentUser.IsTemporary()) { CurrentUser = new User( CurrentUser.Login, CurrentUser.Token, id, CurrentUser.RocketPassword, CurrentUser.StoreType); return; } Set(login, "UserId", WindowsCipherManager.Encrypt( id.ToString(), $"UserId-{login}")); }
public void SetUserToken(string login, string token) { if (CurrentUser.Login == login && CurrentUser.IsTemporary()) { CurrentUser = new User( CurrentUser.Login, token, CurrentUser.Id, CurrentUser.RocketPassword, CurrentUser.StoreType); return; } Set(login, "UserToken", WindowsCipherManager.Encrypt( token, $"UserToken-{login}")); }