public function postActivation(ConnectionInterface $con = null) { DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::ADMIN_PASSWORD, "thelia2"); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::ADMIN_USERNAME, "thelia2"); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::CUSTOMER_EMAIL, "*****@*****.**"); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::CUSTOMER_PASSWORD, "thelia"); }
public function editConfiguration() { if (null !== ($response = $this->checkAuth(AdminResources::MODULE, [DemoTheliaNet::DOMAIN_NAME], AccessManager::UPDATE))) { return $response; } $form = $this->createForm('demothelianet.configuration.form'); $error_message = null; try { $validateForm = $this->validateForm($form); $data = $validateForm->getData(); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::ADMIN_USERNAME, $data["admin_username"]); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::ADMIN_PASSWORD, $data["admin_password"]); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::CUSTOMER_EMAIL, $data["customer_email"]); DemoTheliaNet::setConfigValue(DemoTheliaNetConfigValue::CUSTOMER_PASSWORD, $data["customer_password"]); return $this->redirectToConfigurationPage(); } catch (FormValidationException $e) { $error_message = $this->createStandardFormValidationErrorMessage($e); } if (null !== $error_message) { $this->setupFormErrorContext('configuration', $error_message, $form); $response = $this->render("module-configure", ['module_code' => 'DemoTheliaNet']); } return $response; }