mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-13 07:46:57 +00:00
Admins can now change passwords
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user