application/controllers/login.php
// checking email id in database for reset password
checking email id in database for reset password
checking email id in database for reset password
function check_email(){
		$email = $this->accountinfo->check_email($this->input->post('email'));
		if ($email) {
			$this->session->set_userdata('reset-password','reset');
			$this->send_mail();
		} else {
			$this->session->set_flashdata('feedback','Your email id not found in our database, please enter a valid email or create new account to register your hostel.');
			$this->session->set_flashdata('feedback_class','alert-warning');
			return redirect('login/forgot');
		}
	}
function check_email ( ) { $ email = $ this -> accountinfo -> check_email ( $ this -> input -> post ( 'email' ) ) ; if ( $ email ) { $ this -> session -> set_userdata ( 'reset-password' , 'reset' ) ; $ this -> send_mail ( ) ; } else { $ this -> session -> set_flashdata ( 'feedback' , 'Your email id not found in our database, please enter a valid email or create new account to register your hostel.' ) ; $ this -> session -> set_flashdata ( 'feedback_class' , 'alert-warning' ) ; return redirect ( 'login/forgot' ) ; } }
checking email id in database for reset password
checking email id in database for reset password