From 85379066df55acdc23b75e038e8f94a5f14f3363 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Mon, 15 Aug 2011 23:26:34 +0200 Subject: [PATCH] Add password change feature --- application/controllers/auth.php | 7 +++--- application/views/auth/settings.php | 33 +++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/application/controllers/auth.php b/application/controllers/auth.php index e8bd34a..fce9b7c 100644 --- a/application/controllers/auth.php +++ b/application/controllers/auth.php @@ -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 diff --git a/application/views/auth/settings.php b/application/views/auth/settings.php index 4195485..dcfb390 100644 --- a/application/views/auth/settings.php +++ b/application/views/auth/settings.php @@ -6,8 +6,9 @@

@@ -15,6 +16,7 @@
+
+ +

- +