Thursday, May 29, 2014

cant login

Hi,

I am learning how cakePHP does logins from this long example
http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

I copied all the code in the files and there is a few files here.
Anyway I have 2 questions from that link

1) I cant get anything to login. I dont get an error but at the login screen I cant login with anything and also I go to add where I add a user and I get redirected back to the login screen.

I get from the login scren "You are not authorized to access that location".


2) is the below code required in the User.php file as i didnt include this App::uses
// app/Model/User.php    App::uses('AppModel', 'Model');  App::uses('SimplePasswordHasher', 'Controller/Component/Auth');



Connect with us: 

    

Please consider the environment before printing this email.

 

This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential,  may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of National Training and Solutions Provider Pty Ltd ABN 34 123 831 023, or any of its related entities. NTSP does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.

--
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: