private Dictionary <string, object> buildParamsAdd() { Dictionary <string, object> mapParams = new Dictionary <string, object>(); mapParams.Add(User.PARAM_USERTYPEID, operatorUser.Type + 1); mapParams.Add(User.PARAM_USERNAME, operatorUser.UserName); string password = criptoUtil.encript(operatorUser.Password); //string d = criptoUtil.desencript(password); mapParams.Add(User.PARAM_PASS, password); mapParams.Add(User.PARAM_FIRSTNAME, operatorUser.FirstName); mapParams.Add(User.PARAM_LASTNAMES, operatorUser.LastName); return(mapParams); }
private void saveUserMobileRegistry(string id) { RegistryValueDataReader registryValueDataReader = new RegistryValueDataReader(); registryValueDataReader.setKeyValueRegistry(RepositorySqlServer.PATH_KEY, USER_MOBILE_KEY, txtUser.Text); string password = criptoUtil.encript(txtPassword.Text.ToString()); registryValueDataReader.setKeyValueRegistry(RepositorySqlServer.PATH_KEY, PASSWORD_MOBILE_KEY, password); registryValueDataReader.setKeyValueRegistry(RepositorySqlServer.PATH_KEY, TOKEN_MOBILE_KEY, "1"); registryValueDataReader.setKeyValueRegistry(RepositorySqlServer.PATH_KEY, USER_ID_MOBILE_KEY, id); }