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 bake
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
Auth->allow('admin_add
yes that must be it. Its encrypting the encrypted password!
cheers!
On Thu, Aug 12, 2010 at 2:41 PM, Max Dörfler wrote:
> 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 y
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 pa
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 CakePH
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 autho
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 autho
Hint: 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:
>
> http://book.cakephp.org/view/172/authent
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
co
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 tut
This is what my form looks like:
create('User',array('action' => 'login')); ?>
error('User.username'); ?>
input('User.username',
array('label'=>'Username') ); ?>
error('User.passwd'); ?>
input('User.passwd', array('label'=>'Password') ); ?
>
submit('Submit', array('class' => 'submit')); ?>
I
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 defaul
12 matches
Mail list logo