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
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
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
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
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
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
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
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
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
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
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:
11 matches
Mail list logo