auth component issue

2011-01-18 Thread andy_the ultimate baker
hi, i m working on auth component in cake. the login is working but log out is not secured. when user logged out he should not move forward without login but still he can can any one tel me hoe to restrict user form moving forward without login. this is my app controller ?php class

Re: auth component issue

2011-01-18 Thread Amit Badkas
Hi, You need to use $this-redirect($this-Auth-logout()); instead of $this-redirect(array('action'='login')); in users controller's logout action. Hope this helps. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Wed, Jan 19, 2011 at 11:57 AM, andy_the ultimate baker

auth component issue

2010-08-12 Thread james
Hi, I'm using the auth component and ive noticed that if i edit a users details from within the app it automatically changes the encrypted password. Any ideas as to why it would do this? thanks, James. Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: auth component issue

2010-08-12 Thread Max Dörfler
Hi, that is beacuse when you create the user, the plaintext password gets encrypted. When you now edit the user, the encrypted password gets loaded and when you save your user, the encrypted password gets encrypted again. (so the already encrypted password is handled as if it's a plaintext

Re: auth component issue

2010-08-12 Thread james livsey
yes that must be it. Its encrypting the encrypted password! cheers! On Thu, Aug 12, 2010 at 2:41 PM, Max Dörfler max.doerf...@googlemail.comwrote: Hi, that is beacuse when you create the user, the plaintext password gets encrypted. When you now edit the user, the encrypted password gets

Re: Quick Auth component issue

2008-04-10 Thread Antonio Labriola
Hey guys, thanks for the responses. So it looks like i was doing everything correctly except one minor thing. I was using md5 to encrypt my passwords, however the Auth component does not default to md5, so i had to set it. Then i had to modify the Security.salt key to blank in order for

Quick Auth component issue

2008-04-09 Thread Antonio Labriola
Hi guys, Hopefully someone could have a quick answer for me. I am trying to use the auth component for authorization in my webapp. I have activated the auth component and app_controller.php, and i have created a users_controller,user model, and users table in the database, all to the

Re: Quick Auth component issue

2008-04-09 Thread aranworld
This is what my form looks like: ?php echo $form-create('User',array('action' = 'login')); ? fieldset class=form ?php echo $form-error('User.username'); ? ?php echo $form-input('User.username', array('label'='Username') ); ? ?php echo $form-error('User.passwd'); ? ?php echo

Re: Quick Auth component issue

2008-04-09 Thread Chris Hartjes
On Wed, Apr 9, 2008 at 2:48 PM, Antonio Labriola [EMAIL PROTECTED] wrote: Has anyone had anything similar to them? I didnt think it was going to be this difficult to get the simple authorization up and running. Any help would be appreciated, thanks. Have you tried the various

Re: Quick Auth component issue

2008-04-09 Thread Baz
Because there are so many bits and pieces associated with Auth, it's hard to diagnose your problem without ALL your code. However, let's try the reverse. Look at these: http://book.cakephp.org/view/172/authentication http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/(downloadable

Re: Quick Auth component issue

2008-04-09 Thread John R
Hint: ?php echo $form-input('password'); ? On Apr 9, 2:16 pm, Baz [EMAIL PROTECTED] wrote: Because there are so many bits and pieces associated with Auth, it's hard to diagnose your problem without ALL your code. However, let's try the reverse. Look at these: