application/controllers/Dashboard.php
//controller for the creating the new password of the user in  for recovering its account
controller for the creating the new password of the user in  for recovering its account
controller for the creating the new password of the user in for recovering its account
public function changePass(){
	 		$data['password'] = password_hash($_POST['password'], PASSWORD_DEFAULT);
	 		$id = $_POST['id'];
	 		if ($_POST['password'] == "") {
	 		     $ret = "Password must not be empty";
	 		}else if ($_POST['password'] != $_POST['pass2']) {
	 			 $ret = "Password didn't matched!";
	 		}else{
	 			 $ret = $this->dashboard_model->newPassword($data,$id,'admin');
	 		}
	 		echo $ret;
	 	}
public function changePass ( ) { $ data [ 'password' ] = password_hash ( $ _POST [ 'password' ] , PASSWORD_DEFAULT ) ; $ id = $ _POST [ 'id' ] ; if ( $ _POST [ 'password' ] == " " ) { $ ret = " Password must not be empty " ; } else if ( $ _POST [ 'password' ] != $ _POST [ 'pass2' ] ) { $ ret = " Password didn't matched! " ; } else { $ ret = $ this -> dashboard_model -> newPassword ( $ data , $ id , 'admin' ) ; } echo $ ret ; }
controller for the creating the new password of the user in  for recovering its account
controller for the creating the new password of the user in for recovering its account