/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/start.php

  • Committer: elof.bigestans at gmail
  • Date: 2013-05-28 14:46:36 UTC
  • mto: This revision was merged to the branch mainline in revision 124.
  • Revision ID: elof.bigestans@gmail.com-20130528144636-o8lj9sc4y2p7z5xc
* Moved login JS to bannermenu.js and removed login.js 
* Removed deprecated login CSS and JS 
* Fixed login functionality -- now shows validation errors directly in the login popup, works through ajax
* Added a nifty little icon to represent the disabled login hint button

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
                                //Try to login
101
101
                                if ($this->user->login($username, $password)) {
102
102
                                        // If the login is successful, Redirects user to the page it came from
103
 
                                        redirect($_SERVER['HTTP_REFERER']);
 
103
                                        echo "true";
104
104
                                } else {
105
 
                                        echo "Wrong username or password";
 
105
                                        echo "<p>Wrong username or password</p>";
106
106
                                }
107
107
                        }
108
108
                }