05.04
php
saved
UserLogin
Note
UserLogin did not leave a note
UserLogin did not leave a note
- <?php
- class UsersController extends AppController {
- var $name = 'Users';
- function login()
- {
- $this->log('First line in User::login()');
- $this->log('After 1st if in User::login()');
- if($this->Auth->login($this->data)) {
- $this->log('After 2nd if in User::login()');
- $this->User->id = $this->Session->read('Auth.User.id');
- }
- }
- $this->log('Last line in User::login()');
- }
- function logout(){
- $this->redirect($this->Auth->logout());
- }
- }
- ?>
Parsed in 0.046 seconds, using GeSHi 1.0.7.14