Bruna BSPCU Posted March 27, 2013 Share Posted March 27, 2013 (edited) Hello everybody! I need to do the authentication.tpl (first page) with just this: Log in Email: ______________________ Password: ______________________ Forgot your password | Create an account There is no e-mail entry for the "Create an account form", it is just a link. So i want the user to click the link and then in the next page his email and every other information is validated. What i need to do here? Thanks so much! Edited March 27, 2013 by Bruna BSPCU (see edit history) Link to comment Share on other sites More sharing options...
Bruna BSPCU Posted March 27, 2013 Author Share Posted March 27, 2013 I discovered the solution: Inside Controllers>AuthController.php on the line 48 edit this part: was like that: if (Tools::isSubmit('SubmitCreate')) { if (!Validate::isEmail($email = Tools::getValue('email_create')) OR empty($email)) $this->errors[] = Tools::displayError('Invalid e-mail address'); elseif (Customer::customerExists($email)) { $this->errors[] = Tools::displayError('An account is already registered with this e-mail, please fill in the password or request a new one.'); $_POST['email'] = $_POST['email_create']; unset($_POST['email_create']); } else { $create_account = 1; self::$smarty->assign('email_create', Tools::safeOutput($email)); $_POST['email'] = $email; } } will be like that: if (Tools::isSubmit('SubmitCreate')) { $create_account = 1; self::$smarty->assign('email_create', Tools::safeOutput($email)); $_POST['email'] = $email; } hope helped somebody Link to comment Share on other sites More sharing options...
Recommended Posts