Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class UserController extends AppController {
- #var $scaffold;
- function login(){
- if( $this->Auth->user() ){
- $this->Session->setFlash('Welcome back ' . $this->Auth->user('username'));
- $this->redirect( $this->Auth->redirect() );
- }
- }
- function logout(){
- $this->Session->setFlash('Come again ') ;
- $this->redirect( $this->Auth->logout() );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement