cakephp - Invalid username and password , Login -


I am using Cakephp version 2.5.4

The problem is I do not login Can, $ it-> at-> login () every time returns!

Without a password or without the same results, what could be wrong? Spend the whole day to check the code, but there is no way ..

If you have time to check the code here, I would appreciate it:

Everything included Was: User.php, UsersController.php, login.ctp, register.ctp

Thanks in advance ...

I'm not sure, but I think $ this-> Data is not available in kcpp 2.x. You have $ this-> Data from to $ this-> Request-> The data should be changed and all fields will be available on Auth.

What type of class and hash are you using in AppController? For example, app controls:

  public $ component = array ('orth' => array array ('form' = & gt; array ('passwordHasher' = & gt; array ('ClassName' = & gt; 'simple', 'hashtip' = & gt; 'sha256'))))); Save ($ options = array ()) {if (empty! ($ - this-> data [$ this- & gt; nickname] ['password'])) {$ passwordHasher = new SimplePasswordHasher (array ('Hashtip' = & gt; 'sha256')); $ [This- & gt; Data [$ this- &} back true; }  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -