Your distributors login submit looking for a 'distributor_login' method and that is missing 'DistributorsController'.
On Friday, July 31, 2015 at 4:54:16 PM UTC+5:30, Asmat Quadeer wrote: > > I am trying to create a login form for different types of users like > > `Suppliers`, `Distributors`, `Managers` > > > on the website like > > http://azzip.de/distributors/login > > And the Distributor's beforeFilter looks like > > > public function beforeFilter() { > > parent::beforeFilter(); > > AuthComponent::$sessionKey = 'Auth.Distributor'; > > $this->Auth->authenticate = array( > 'Form' => array( > 'userModel' => 'Distributor', > 'fields' => array( > 'username' => 'email', > 'password' => 'password' > ), > 'scope' => array( > 'Distributor.active' => 1, > ) > ) > ); > > $this->Auth->allow('login', 'forgotpass', 'register'); > } > > > The passwords are hashed. But no chance to login. and unfortunately also > can't see the the > `login()` > > query to debug. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
