cant login

2014-05-29 Thread jagguy
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');


-- 
 http://itfutures.edu.au?referer=email
*P: (03) 9866 7737*
*E: i...@itfutures.edu.au i...@itfutures.edu.au*
*A: Suite 5 / Level 1 / 424 St Kilda Rd, Melbourne, 3004 
https://www.google.com.au/url?sa=trct=jq=esrc=ssource=webcd=15cad=rjauact=8ved=0CKQBEPUXMA4url=http%3A%2F%2Fmaps.google.com.au%2Fmaps%3Fgl%3Dau%26hq%3Ditfutures%26daddr%3D1%2F424%2BSt%2BKilda%2BRd%2C%2BMelbourne%2BVIC%2B3004%26panel%3D1%26f%3Dd%26fb%3D1%26geocode%3DFdKovv0dMSWkCCnfp02hHWjWajGLbygrlMPvUw%26cid%3D6048267865728511883ei=hHUYU_abH8-okgXV7oGYDgusg=AFQjCNEBpgXrGRhNzMxOzPLHRVSQkdpXUQbvm=bv.62577051,d.dGI*


-- 
*Connect with us: *

http://plus.google.com/+itfutureseduau 
http://linkedin.com/company/it-futures
  http://youtube.com/user/itfutureseduau  http://twitter.com/itfutures 
http://facebook.com/itfutures

-- 


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+unsubscr...@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.


Re: cant login

2014-05-29 Thread jagguy
This the view I cant get out of

div class=users form
?php echo $this-Session-flash('auth'); ?
?php echo $this-Form-create('User'); ?
fieldset
legend
?php echo __('!! Please enter your username and password'); ?
/legend
?php echo $this-Form-input('username');
echo $this-Form-input('password');
?
/fieldset
?php echo $this-Form-end(__('Login')); ?
/div

-- 
 http://itfutures.edu.au?referer=email
*P: (03) 9866 7737*
*E: i...@itfutures.edu.au i...@itfutures.edu.au*
*A: Suite 5 / Level 1 / 424 St Kilda Rd, Melbourne, 3004 
https://www.google.com.au/url?sa=trct=jq=esrc=ssource=webcd=15cad=rjauact=8ved=0CKQBEPUXMA4url=http%3A%2F%2Fmaps.google.com.au%2Fmaps%3Fgl%3Dau%26hq%3Ditfutures%26daddr%3D1%2F424%2BSt%2BKilda%2BRd%2C%2BMelbourne%2BVIC%2B3004%26panel%3D1%26f%3Dd%26fb%3D1%26geocode%3DFdKovv0dMSWkCCnfp02hHWjWajGLbygrlMPvUw%26cid%3D6048267865728511883ei=hHUYU_abH8-okgXV7oGYDgusg=AFQjCNEBpgXrGRhNzMxOzPLHRVSQkdpXUQbvm=bv.62577051,d.dGI*


-- 
*Connect with us: *

http://plus.google.com/+itfutureseduau 
http://linkedin.com/company/it-futures
  http://youtube.com/user/itfutureseduau  http://twitter.com/itfutures 
http://facebook.com/itfutures

-- 


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+unsubscr...@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.