Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How use auth login in different model in cakephp

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 285
    Comment on it

    How use auth login in different model in cakephp

    public $components = array('Session', 'Cookie',
        'Auth' => array(
            'authenticate' => array('Form' => array( 'userModel' => 'Admin',
                                'fields' => array(
                                                    'username' => 'username',
                                                    'password' => 'password'
                                                    )
    
                                            )
                        ),
    
        ),
    );
    

    in this code Admin is a differnt model by defualt auth component works for user model

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: