Re: Problem with Auth Component hashes

2010-04-20 Thread Stefano Martins
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 > >

Re: Problem with Auth Component hashes

2010-04-19 Thread WebbedIT
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

Re: Problem with Auth Component hashes

2010-04-18 Thread Zaky Katalan-Ezra
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

Re: Problem with Auth Component hashes

2010-04-18 Thread John Andersen
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

Problem with Auth Component hashes

2010-04-18 Thread Stefano Martins
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

Re: Problem with auth component

2008-12-31 Thread j0n4s.h4rtm...@googlemail.com
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

Re: Problem with auth component

2008-12-30 Thread gearvOsh
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

Re: Problem with auth component

2008-12-30 Thread vikas
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

Re: Problem with auth component

2008-12-30 Thread vikas
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

Re: Problem with auth component

2008-12-30 Thread WebbedIT
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

Problem with auth component

2008-12-30 Thread vikas
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

Problem with auth component

2008-07-25 Thread Intellex
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