Add password change feature

This commit is contained in:
Eike Foken
2011-08-15 23:26:34 +02:00
parent cc134691ac
commit 85379066df
2 changed files with 34 additions and 6 deletions

View File

@@ -113,10 +113,9 @@ class Auth extends CI_Controller {
if ($this->input->post('new_password') != '') {
$username = $this->session->userdata('username');
$change = $this->access->changePassword($username, $this->input->post('old_password'), $this->input->post('new_password'));
if ($change) {
$this->logout();
}
// if ($change) {
// $this->logout();
// }
}
// update users table