1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
3
class Ajax extends CI_Controller {
7
function __construct() {
10
//Load required library
11
$this->load->model('user', '', TRUE);
16
* This function outputs data: user password hint.
18
public function pwdhint($user) {
20
'hint' => $this->user->getPasswordHint($user)
24
echo json_encode($data);
28
* This function outputs data: user password hint.
30
public function pwdchange() {
31
$pwdOld = $this->input->post('currentPwd');
32
$pwdNew = $this->input->post('newPwd');
33
$pwdHint = $this->input->post('hintPwd');
36
'status' => $this->user->changePassword($pwdOld, $pwdNew, $pwdHint)
40
echo json_encode($data);
b'\\ No newline at end of file'