Admins can now change passwords

This commit is contained in:
Ismo Vuorinen
2013-07-17 14:39:33 +03:00
parent f0f1d71c48
commit 59ee192e1d
4 changed files with 67 additions and 0 deletions

View File

@@ -152,6 +152,12 @@ class Yllapito extends CI_Controller
$this->users->save($user_id, $data);
redirect($from);
break;
case 'password':
$data = $this->input->post();
$from = $data['from_page'];
$this->users->savePassword($user_id, $data['password']);
redirect($from);
break;
case 'show':
$data['userid'] = $user_id;
$data['userdata'] = $this->users->get($user_id);