/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/controllers/ajax.php

  • Committer: a11andoh
  • Date: 2013-05-27 12:25:29 UTC
  • mfrom: (107 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: a11andoh@student.his.se-20130527122529-qom5z3wlf4o01i57
blurp

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
                function showPopup($popupName) {
22
22
                        $headTagData = array(
23
 
                                'cssFiles' => array('bannermenu', 'popup')
 
23
                                'cssFiles' => array('popup'),
 
24
                                'jsFiles' => array('login')
24
25
                        );
25
26
 
26
27
                        $userInfo = array(
30
31
 
31
32
                        // Loads head views, supplying CSS and JS data
32
33
                        $this->load->view('headTag', array('headTagData' => $headTagData));
33
 
                        $this->load->view('bannermenu', $userInfo);
34
34
 
35
35
                        $this->load->view('popup/'.$popupName);
36
36
                }
51
51
                 *      This function outputs data: user password hint.
52
52
                 */
53
53
                public function pwdhint() {
54
 
                $user = $this->input->post('hintPwd');
55
 
                        $data = array(
56
 
                                'hint' => $this->user->getPasswordHint($user)
57
 
                        );
 
54
                        $this->load->model('user');
 
55
                        if($this->input->post('username')) {
 
56
                                $username = $this->input->post('username');
 
57
                                $data = array(
 
58
                                        'hint' => $this->user->getPasswordHint($username)
 
59
                                );
58
60
                        
59
 
                        //Output JSON data
60
 
                        echo json_encode($data);
 
61
                                //Output JSON data
 
62
                                echo json_encode($data);
 
63
                        }
61
64
                }
62
65
 
63
66
                /*