Re: Auth error, even with allowed actions

2012-04-05 Thread Benjamin Allison
I solved it by doing the following, though I'm not entirely sure why it's working! public function isAuthorized($user = null) { switch($this->action) { case "index": case "add": if ($user['role'] == 'coach') { return true; }

Re: Auth Error message

2011-07-31 Thread billmad
I am also having the same problem. Also, when I enable this Authed component it stops public access for pages in $this->Auth->allowedActions in my users controller thanks -- View this message in context: http://cakephp.1045679.n5.nabble.com/Auth-Error-message-tp1255857p4652412.html Sen

Re: Auth Error somewhere

2011-03-20 Thread Miloš Vučinić
Heh, sometimes I had the same issue. I tried to login but I thought I failed although login was success. The thing is, when you login, try to access to smth that that kind of user can and see if it is OK. Also, in app_controller add an loginredirect which will redirect you after successful login, a

Re: Auth Error

2010-05-27 Thread Ed Propsner
I'm relatively sure that by default $this->Auth uses a combination of your security salt and sha1 for the hash but you can change it to whatever you want if you feel the need. http://api13.cakephp.org/class/security - Ed On Thu, May 27, 2010 at 6:18 PM, D

Re: Auth Error

2010-05-27 Thread Davor Ilic
o no it was my mistake xD i have forgot to declare the php tags xD that happens first time since i had learnd about php oh man thats sucking i have lost time for this bu..s..t sorry man for losing your time . but where can i find how the password will be saved how it will be ecoded? thanks 2

Re: Auth Error

2010-05-27 Thread Ed Propsner
First and foremost make sure that you actually have a controller named users_controller.php in your app/controllers dir On Thu, May 27, 2010 at 5:59 PM, Davor Ilic wrote: > The Security i had cahange it from begin, do not know why it wanna from me > to do it again. > and in the appcontroller i´v

Re: Auth Error

2010-05-27 Thread Davor Ilic
The Security i had cahange it from begin, do not know why it wanna from me to do it again. and in the appcontroller i´ve also write the same which you said but this gives me the error when i delete this line from appcontroller it works fine only if i change it in appcontroller to auth it doesn´t wo

Re: Auth Error

2010-05-27 Thread Ed Propsner
Just to be sure make sure your config for the Auth component in the AppController looks something like this: class AppController extends Controller { var $components = array('Auth'); } By the looks of it you may also want to change your security salt and cipherSeed in App/Config/Core.php I'm no

Re: auth error message make extra space under error message - how can I make it small??

2010-01-20 Thread John Andersen
Use firebug in firefox to see which CSS applies to your element and which overrides your CSS! Enjoy, John On Jan 20, 8:26 pm, leafchild wrote: > I set auth to display my login error message but when it display > > "Login failed. Invalid username > or password." > > above code create extra extr

Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi
Thanks, Gwoo, it works fine right now! On Tue, 2009-02-10 at 08:46 -0800, Gwoo wrote: > Actually you should probably use Auth->allow('logout') in your users > controller. > Also, if you want to add to the actionMap then use Auth::mapActions(); > > --~--~-~--~~~---~-

Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread Gwoo
Actually you should probably use Auth->allow('logout') in your users controller. Also, if you want to add to the actionMap then use Auth::mapActions(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.