on-internet
← Community

Cakephp 3.0 Login

Stack Overflow ·

I'm facing trouble with my login system. I managed to register my user in my database but whenever I try to log in, it keeps prompting "Invalid email or password, try again". This is my model: <?php namespace App\Model\Table; use Cake\ORM\Table; use Cake\Validation\Validator; class UsersTable extends Table { public function validationDefault(Validator $validator) { return $validator ->notEmpty('email', 'A email is required') ->add('email', 'valid' , ['rule'=> 'email']) ->add('email', [ 'unique' => ['rule' => 'validateUnique', 'provider' => 'table'] ]) ->requirePresence('email','create') ->notE

Comments

Sign in or sign up to comment and upvote.

No comments yet.