Duh, I forgot about the salt value and added the user in the users
table without it.
Thanks, people!
On 19 abr, 04:50, WebbedIT wrote:
> If wanting to compare your hashed password with a salt inflected
> hashed string use
>
> if ($password == $this->Auth->password($password_confirm))
>
> or
>
>
If wanting to compare your hashed password with a salt inflected
hashed string use
if ($password == $this->Auth->password($password_confirm))
or
if ($password == Security::hash(Configure::read('Security.salt') .
$password_confirm)
HTH
Paul
On Apr 18, 5:24 pm, Zaky Katalan-Ezra wrote:
> I th
I think the Auth uses a salt.
On Sun, Apr 18, 2010 at 6:43 PM, Stefano Martins wrote:
> Hello folks,
>
> As I was studying CakePHP and the Auth Component, I've found out that
> it's not using sha1 hashes - or at least it doesn't seems to - by
> default. I had to manually set it to use md5 hashes
It is probably related to the salt value in the configuration that
CakePHP is using!
Which is also why I get yet another sha1 hash for "stefano" in my
application :)
Enjoy,
John
On Apr 18, 6:43 pm, Stefano Martins wrote:
> Hello folks,
>
> As I was studying CakePHP and the Auth Component, I've
Hello folks,
As I was studying CakePHP and the Auth Component, I've found out that
it's not using sha1 hashes - or at least it doesn't seems to - by
default. I had to manually set it to use md5 hashes, following the
instructions given by the Cookbook. For the string "stefano", Cake's
generating th
if I understood the thread opener he wants to have an automagical
redirect to the login page after x min of inactivity by the user where
x is the SessionTimeout.
If you want that, I do not think CakePHP does it. Typo3 for instance
does that (and it is very annoying being a developer to have that
f
What does your AppController beforeFilter() look like?
http://www.milesj.me/blog/read/5/using-cakephps-auth-component/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send emai
and ya i have to clerify that i have written this line in
'app_controller' file:
*
var $components = array('Auth');
--~--~-~--~~~---~--~~
You received this message because you are subs
ya I have set Auth to be used across all controllers. It is ok that
only authorised user can access that controller..thats not problem for
me.
but the problem is that loggedin user automatically loggedout if he
remains idle for few minutes...(I have mentioned this problem before
also..), and he st
Have you set Auth to be used across all controllers? If so Auth by
default will not allow access to any controller/action unless there is
an authorised user. If they are not authorised, Auth will redirect
them to '/app/User/login'.
--~--~-~--~~~---~--~~
You receiv
hi
I have used auth component in login page. so i havent used session
because Its automatic in the Auth component.
now the problem is after login by valid user, if user will remain idle
for few minutes it will automatically loggedout, thats ok.
but after automatic logged out he still stays on the
Hey i am having a problem ... every thing is going fine except the
redirect url ... Cake is saving the referer address in Session
"Auth.redirect" but its not accurate ... its not giving correct url of
controller ... instead its just giving an "s" in place of controller
name ... example ... when i
12 matches
Mail list logo