function forgotten_end () { $rules['answer'] = "required"; $this->validation->set_rules($rules); $fields['answer']= 'Answer'; $this->validation->set_fields($fields); if ($this->validation->run()) { $redux = $this->redux_auth->forgotten_end($this->input->post('answer')); if ($redux) { // new password sent. } else { // failed. } } else { $this->load->view('users/forgotten_process'); } }
<h1>Login</h1> <?php echo $this->validation->error_string; ?> <?php echo form_open('user/login'); ?> <label for="username">Email : </label><br /> <?php echo form_input('email'); ?><br /><br /> <label for="password">Password : </label><br /> <?php echo form_password('password'); ?><br /><br /> <label for="submit"> </label> <?php echo form_submit('submit', 'Login'); ?> <?php echo form_close(); ?>