mickt Posted May 29, 2012 Report Share Posted May 29, 2012 Понадобилось ввести в процессе регистрации поле с подтверждением пароля. В register.tpl добавил инпут re_pass, прописал там же elseif с текстом ошибки о несовпадении пароля. В базе user создал колонну re_pass. В RegisterView.php добавил описание $re_pass = $this->request->post('re_pass'); и проверку на совпадение elseif ($password != $re_pass) $this->design->assign('error', 'error_repass');Но проверка не проходит, регистрация проходит с различными значениями, без ошибок. Подскажите, пожалуйста, что не правильно сделал. Quote Link to post Share on other sites
iluwka Posted May 29, 2012 Report Share Posted May 29, 2012 зачем в БД заносил повторно, проверяй по факту ввода Quote Link to post Share on other sites
mickt Posted May 29, 2012 Author Report Share Posted May 29, 2012 А поточнее? Quote Link to post Share on other sites
arsium Posted May 29, 2012 Report Share Posted May 29, 2012 Тоже интересно =) Quote Link to post Share on other sites
mickt Posted May 29, 2012 Author Report Share Posted May 29, 2012 Решил, кому надо - http://ruseller.com/lessons.php?rub_id=32&id=246 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.