Re: serious problem with cakephp about CakePHP Auth Component & Permissions

2010-06-15 Thread Jeremy Burns | Class Outfit
Why doesn't the solution you forwarded meet your needs? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 15 Jun 2010, at 18:12, hoss7 wrote: > hi > > i have serious problem with cakephp about CakePHP Auth Component & > Permissions &g

serious problem with cakephp about CakePHP Auth Component & Permissions

2010-06-15 Thread hoss7
hi i have serious problem with cakephp about CakePHP Auth Component & Permissions i am search in the internet and book.cakephp.org and cakeforge.org and cakeqs.org for find some easy and professional idea(source code) for create CakePHP Auth Component - Users, Groups & Permissions bu

is Auth component init always the same in the 1.3 version???

2010-06-09 Thread cherif_Gsoul
I have some trouble with the init of Auth component is it the same as 1.2? it displays me the user login information in the url without loging in in 1.2 i had not this problem!!! http://localhost/~cherif/myapp/users/login?_method=POST&data[User][username]=admin&data[User][password]=ad

Re: problem in auth component when i was creating a login controller.

2010-06-08 Thread Narendra Padala
Thanks sir, its working fine.! On Tue, Jun 8, 2010 at 8:40 PM, calvin wrote: > Don't post the same question twice, please. You already had people > helping you with this in the other thread. > > On Jun 8, 4:16 am, Narendra Padala wrote: > > Hi i am new to cake php, when i am creating a log

Re: problem in auth component when i was creating a login controller.

2010-06-08 Thread calvin
Don't post the same question twice, please. You already had people helping you with this in the other thread. On Jun 8, 4:16 am, Narendra Padala wrote: > Hi i am new to cake php, when i am  creating a login authentication using > app controller the following error was showed so please help me out

Re: problem in auth component when i was creating a login controller.

2010-06-08 Thread Jeremy Burns
Read the error message and obey: You have: $this->Auth->authorize = 'tblusers'; The error says: > Warning (512): Auth::isAuthorized() - $authorize is set to an incorrect > value. Allowed settings are: "actions", "crud", "model" or null. > [CORE/cake/libs/controller/components/auth.php, line

problem in auth component when i was creating a login controller.

2010-06-08 Thread Narendra Padala
Hi i am new to cake php, when i am creating a login authentication using app controller the following error was showed so please help me out. here data base i am using postgress sql, here i dont have permission to chanage the databse. this is app_controller.php --

Re: Stop Auth component from redirecting

2010-06-07 Thread Ed Propsner
If I'm following you correctly you could use $this->Auth->autoRedirect = false; On Mon, Jun 7, 2010 at 4:11 PM, junker37 wrote: > How can I stop the auth component from redirecting? Currently, when I > make an ajax call, and the user isn't allowed to the requested actio

Stop Auth component from redirecting

2010-06-07 Thread junker37
How can I stop the auth component from redirecting? Currently, when I make an ajax call, and the user isn't allowed to the requested action, cake redirects to the index of the requested controller. I want to know how I can stop it from redirecting so I can pop up an error message. Check ou

Re: Auth Component and user information.

2010-06-07 Thread cricket
On Jun 7, 2:33 pm, saidbakr wrote: > I also noticed another thing: > > The output of $this->Auth->user() ,without key parameter, is an array > which is listing User model only without regarding the associated > model. Look at the API: http://api.cakephp.org/class/

Re: Auth Component and user information.

2010-06-07 Thread cricket
On Jun 7, 2:19 pm, saidbakr wrote: > Well, but what about the data in the associated Model Rules? How could > I get it? The AuthComponent does not require anything in the User::login() method. However, if you wish to run some code upon login, you implement it there. public function login() {

Re: Auth Component and user information.

2010-06-07 Thread Jeremy Burns
I think the point is that as part of your log in process you scrape information from your associated model and add it to the User array. You could also do an update if the associated model data was changed, I guess. Jeremy Burns jeremybu...@me.com On 7 Jun 2010, at 19:33, saidbakr wrote: > I

Re: Auth Component and user information.

2010-06-07 Thread saidbakr
I also noticed another thing: The output of $this->Auth->user() ,without key parameter, is an array which is listing User model only without regarding the associated model. Array ( [User] => Array ( [id] => 1 [username] => admin [name] => Said Bakr [join_date] => 2010-06-14 19:35:00 [email] => s

Re: Auth Component and user information.

2010-06-07 Thread saidbakr
Well, but what about the data in the associated Model Rules? How could I get it? On Jun 7, 8:27 pm, cricket wrote: > On Jun 7, 11:39 am, saidbakr wrote: > > > > > Hi, > > > I use User model to handle user's basic data such as Name, username, > > password and so on. > > > The User model is associ

Re: Auth Component and user information.

2010-06-07 Thread cricket
On Jun 7, 11:39 am, saidbakr wrote: > Hi, > > I use User model to handle user's basic data such as Name, username, > password and so on. > > The User model is associated with Rule model by belongsTo association, > while Rule model is associated to User model by hasMany association. > > The later m

Auth Component and user information.

2010-06-07 Thread saidbakr
Hi, I use User model to handle user's basic data such as Name, username, password and so on. The User model is associated with Rule model by belongsTo association, while Rule model is associated to User model by hasMany association. The later model "Rule" is meant by something like users groups

Re: XMLHttpRequest bypassing Auth component

2010-05-27 Thread Miles J
le.com/group/cake-php/browse_thread/thread/9b15f303... > > basically the auth component works fine if i browse to the json page > using my browser but if it uses the xmlhttprequest post it doesnt seem > to be a requirement that i am logged in? > is this the correct behaviour. how d

XMLHttpRequest bypassing Auth component

2010-05-26 Thread heratech
this has been posted before by someone else but there was no answer http://groups.google.com/group/cake-php/browse_thread/thread/9b15f3038a95cd30/a80797d08a1b5517?lnk=gst&q=auth&pli=1 basically the auth component works fine if i browse to the json page using my browser but if it

Re: Updating user values in Auth component

2010-05-01 Thread WhyNotSmile
Thanks to both of you. That's helpful. On 28 Apr, 20:08, Miles J wrote: > I prefer this method: > > http://www.milesj.me/blog/read/31/Refreshing-The-Auths-Session > > On Apr 28, 9:22 am, John Andersen wrote: > > > > > Without changing anything in the

Re: CakePHP Auth Component - Users, Groups & Permissions

2010-04-30 Thread hoss7
i dont see no errors, i want change this code for work with cakephp 1.3 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gro

Re: CakePHP Auth Component - Users, Groups & Permissions

2010-04-30 Thread hoss7
i have this app_controller code in cakephp 1.2: params['admin'])) { // Set the default layout $this->layout = 'admin'; }else { $this->layout = 'default'; } //Override default fields used by Auth c

Re: CakePHP Auth Component - Users, Groups & Permissions

2010-04-29 Thread Jeremy Burns
What's wrong with the code there - does it break in 1.3? If so, where? For instance, I can see a '$this->Session->del' which will need to be changed to '$this->Session->delete'. What errors are you getting? Jeremy Burns jeremybu...@me.com On 30 Apr 2010,

CakePHP Auth Component - Users, Groups & Permissions

2010-04-29 Thread hoss7
i want Auth Component - Users, Groups & Permissions for cakephp 1.3 like this code for cakephp 1.2: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited i need powerful code. Check out the new CakePHP Questions site http://cakeqs.org and help ot

Re: Updating user values in Auth component

2010-04-28 Thread Miles J
I prefer this method: http://www.milesj.me/blog/read/31/Refreshing-The-Auths-Session On Apr 28, 9:22 am, John Andersen wrote: > Without changing anything in the Auth component, I do think that you > could redo the login of the current user, when you have updated the > users informat

Re: Updating user values in Auth component

2010-04-28 Thread John Andersen
Without changing anything in the Auth component, I do think that you could redo the login of the current user, when you have updated the users information - for example: [code] $this->Auth->login( $this->Auth->user() ); [/code] That should update the user information in the Auth se

Updating user values in Auth component

2010-04-28 Thread WhyNotSmile
I'm using the built-in Auth component with CakePHP. In part of my site, I allow my user to update their details (e.g. email address). When I then retrieve the user information from the Auth component (using $this->Auth->user()), the details are still the old ones. Is there a way to

Re: Joining Data for Auth Component to read

2010-04-22 Thread cricket
} > > But I don't think I fully understand how the login function works. > Please let me know if this is wrong in many ways. I'm brand new to > CakePHP :\ > > I have an association that User belongsTo Group. There's no way to get > Auth to use this association? &

Re: Joining Data for Auth Component to read

2010-04-21 Thread WebbedIT
In my app_controller I have the following function beforeFilter() { ... if ($this->Auth->user()) { $this->__authExtra(); App::import('Model', 'User'); User::store($this->Session->read('Auth')); } else { $this->Session->del('Auth.Person'); } ... } // The App::import ad Us

Re: Joining Data for Auth Component to read

2010-04-21 Thread capo64
rong in many ways. I'm brand new to CakePHP :\ I have an association that User belongsTo Group. There's no way to get Auth to use this association? On Apr 21, 1:19 am, thatsgreat2345 wrote: > Auth component only stores values that are in the users table, so you > can grab the user id usin

Re: CakePHP Auth Component cannot remember url before authentication

2010-04-21 Thread Prof. No Time
I got it dear. Thanks very much. I opened up the Auth component and digested it myself (Afterall, its just another component written by a brother of mine, lol). I then discovered that the session variable for storing the intended url is 'Auth.redirect', so I leveraged on it by check

Re: Joining Data for Auth Component to read

2010-04-20 Thread thatsgreat2345
Auth component only stores values that are in the users table, so you can grab the user id using $this->Auth->user('id') and then do a find. Or alternatively you can use $this->Auth->login and once if it successfully logs in then do a find on the group data and store it in

Joining Data for Auth Component to read

2010-04-20 Thread capo64
Hi I have a setup with Users and Groups. I've been reading user data using this in my views: $session->read('Auth.User.full_name'); ..etc Now I need to access information about the group of the user. How can I go about doing this? Check out the new CakePHP Questions site http://cakeqs.org and he

Re: Problem with Auth Component hashes

2010-04-20 Thread Stefano Martins
, Apr 18, 2010 at 6:43 PM,StefanoMartins 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 ma

Re: CakePHP Auth Component cannot remember url before authentication

2010-04-19 Thread cricket
On Apr 19, 6:19 am, "Prof. No Time" wrote: > Thanks for the response Cricket, I have dumped my codes below. Please > assist me. Regards. > > My AppController::beforeFilter() > > function beforeFilter(){ >   $this->Auth->fields = array('username' => 'username', 'password' => > 'passkey'); >   $this

Re: CakePHP Auth Component cannot remember url before authentication

2010-04-19 Thread Prof. No Time
Thanks for the response Cricket, I have dumped my codes below. Please assist me. Regards. My AppController::beforeFilter() function beforeFilter(){ $this->Auth->fields = array('username' => 'username', 'password' => 'passkey'); $this->Auth->allow($this->allowedActions); $this->Auth->authori

Re: Problem with Auth Component hashes

2010-04-19 Thread WebbedIT
zra wrote: >  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 d

Re: Auth Component: Allow action in a controller but disallow it in another

2010-04-19 Thread WebbedIT
Can we assume you have set $this->Auth->allow('referrals'), at an application level (/app/app_controller.php) If so add $this->Auth->deny('referrals') in your User and Staff controllers. HTH Paul. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP rel

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

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

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

Re: CakePHP Auth Component cannot remember url before authentication

2010-04-16 Thread cricket
On Apr 16, 1:40 am, "Prof. No Time" wrote: > In the cook book, we are told that the auth component uses the session > component to remember the url the user intended to visit and hence > when authenticated, automatically takes the user there. However, this > DOES NOT W

Re: Auth Component: Allow action in a controller but disallow it in another

2010-04-16 Thread John Andersen
(vis-a-vis url format) name for LEGACY reasons. > The Auth component keeps allowing my users and staffs referral pages > access without authentication. This is understandable though. The > question now is how do I achieve this feat? > > Thank You. > > Check out the new CakePHP Q

Auth Component: Allow action in a controller but disallow it in another

2010-04-16 Thread Prof. No Time
Hello, Please I have an action named "referrals", I wish to allow this action in the guestscontroller without authentication but I have a similar action in the userscontroller and the staffscontroller. I DO NOT wish to change the action (vis-a-vis url format) name for LEGACY reasons

CakePHP Auth Component cannot remember url before authentication

2010-04-15 Thread Prof. No Time
In the cook book, we are told that the auth component uses the session component to remember the url the user intended to visit and hence when authenticated, automatically takes the user there. However, this DOES NOT WORK for me (cake 1.2.5). What could be the problem? Thank you. Check out the

Re: Auth component and roles

2010-04-08 Thread Jeremy Burns
I engaged my brain and solved this: $this->Session->write('Auth.User.role', $role); Jeremy Burns jeremybu...@me.com (Skype) +44 208 123 3822 (jeremy_burns) (m) +44 7973 481949 (h) +44 208 530 7573 On 8 Apr 2010, at 12:30, Jeremy Burns wrote: > Everything I have read about

Auth component and roles

2010-04-08 Thread Jeremy Burns
Everything I have read about the Auth component uses a 'role' column in the users table. I want to store a role_id and have a related 'roles' table instead. Is it possible to store the value in the 'name' column of the roles table in the Auth->User variable so

Auth component not returning expected array key??

2010-03-19 Thread Michael Gaiser
So I am currently trying to migrate to Cake 1.3RC2. Everything is going well, except the array that is being returned when I call $this->Auth->user(). If I am navigating to my user page, the array key is: Array ( [User] => Array ( etc..)) But when I am navigating to any of my other pages it comes

Re: CakePHP Auth-component in AppController

2010-03-05 Thread Robert P
If you have moved all your Auth logic to your AppController you need to make sure that you are extending the methods in subcontrollers, not overwriting them. class UsersController extends AppController { public function beforeFilter() { parent::beforeFilter(); // extended

Re: CakePHP Auth-component in AppController

2010-03-04 Thread Miles J
What does your beforeFilter look like? Make sure your not allowing the login page. On Mar 4, 7:27 am, LDSign wrote: > Hi > > Ive implemented the login-logic with help of Auth. This works fine. > But I would like to have auth all over my site. So I would like to > include this component to the Ap

CakePHP Auth-component in AppController

2010-03-04 Thread LDSign
Hi Ive implemented the login-logic with help of Auth. This works fine. But I would like to have auth all over my site. So I would like to include this component to the AppController (for global access). As soon as I do so, the site stops working. The page will load for some seconds and then there

Re: Auth component not working as expected

2010-02-14 Thread Guillermo Mansilla
Tell me how did you set the authorized var Enviado desde mi iPhone El 14/02/2010, a las 02:39, leon escribió: Hi, I'm trying to use Auth component for parent::beforeFilter(); $this->Auth->allow('*'); But its redirecting to the login page. Even I tried to do $this->

Auth component not working as expected

2010-02-14 Thread leon
Hi, I'm trying to use Auth component for parent::beforeFilter(); $this->Auth->allow('*'); But its redirecting to the login page. Even I tried to do $this->Auth->allow('home'); its not working at all. Did I miss anything? Any help will be highly appreciated

Re: auth component on 2 models?

2009-11-20 Thread Dave
I think typically the better implementation would be to use the same model and use ACL to determine permissions. This is pretty complicated though. Too accomplish what you are talking about you can use the userModel variable from the Auth component: http://book.cakephp.org/view/248/AuthComponent

auth component on 2 models?

2009-11-20 Thread K3
Hi, i have users model (for content management administrators) and clients model (for registered clients). Can i use the same Auth compoennt for both models (to allow them to login/register)? or i need different approach? Any examples/help? thanks. -- You received this message because you are s

Auth component IE (Internet explorer) cache problem (Session gets destroy in IE)

2009-11-19 Thread pankaj
I am using auth component for user authentication. I am creating force logout functionality in my application. If user with same username and password logged in from one machine and another user try to log in using same user name and password from another machine. he/she will see force logout

Re: Invalid argument using Auth Component

2009-11-05 Thread John Andersen
Check that the variable $thisPermissions contain an array and that it is not empty! pr($thisPermissions) Maybe you don't need the line: $thisPermissions = $thisPermissions['Permission']; Enjoy, John On Nov 6, 12:03 am, damanlovett wrote: > I'm using the tutorial

Re: Auth Component does not logout via URL

2009-11-05 Thread robustsolution
or the moment > > > 1)put this in your AppController class > > final protected function _logout() { > >         if (!empty($this->Cookie)) { > >                 //this ensures if you were using the Cookie component along > > with the > > Auth component (the fam

Invalid argument using Auth Component

2009-11-05 Thread damanlovett
I'm using the tutorial CakePHP Auth Component - Users, Groups & Permissions Revisited The error I'm getting is Warning (2): Invalid argument supplied for foreach() [APP/ app_controller.php, line 98] The code for the line error is $thisPermissions = $t

Re: Auth Component does not logout via URL

2009-11-04 Thread Prof. No Time
tips/tricks for the moment > > 1)put this in your AppController class > final protected function _logout() { >         if (!empty($this->Cookie)) { >                 //this ensures if you were using the Cookie component along > with the > Auth component (the famous remember

Re: Auth Component does not logout via URL

2009-11-02 Thread robustsolution
ent along with the Auth component (the famous remember me checkbox) //and you have saved the credentials inside cookie //you should delete the credentials from the cookie when you log out //no need to verify if you have already saved the credenti

Auth Component does not logout via URL

2009-11-01 Thread Prof. No Time
Good day all, Please, I have a little problem with my AUTH component. I am using the default AUTH component in 1.2.5. I discovered that when I login to my app and then try to log out by typing the logout url: http://localhost/myapp/logout (which is routed to myapp/users/logout), the auth

Re: Cakephp auth component allow problem

2009-10-24 Thread robustsolution
Dear @Zahidur, to allow any kind of requestAction from within your AppController do this in the beforeFilter() callback if (array_key_exists('requested',$this->params)) { $this->Auth->allow($this->params['action']); } this is a quick solution for now. and it works for me with no error.

Re: Cakephp auth component allow problem

2009-10-23 Thread jayarjo
Since no one have responded. I guess you'll have just to test it. Doing it in app_controller.php only can be tricky, if not impossible. Theoretically it is possible to check for current controller in app_controller.php. Not sure if that's supported in cake though. And it will be more logical if y

Re: Cakephp auth component allow problem

2009-10-22 Thread Zahidur Rahman
I also thought such way.but i wanted to do all the think in app_controller.php. Ok. thanks for suggestion. 2009/10/22 jayarjo > > > > hmm it's working if i use array. I am using version 1.2 > > I hope my query was confusing for u. > > Probably it will work either way. > > Oh, that's interesting

Re: Cakephp auth component allow problem

2009-10-22 Thread jayarjo
> hmm it's working if i use array. I am using version 1.2 > I hope my query was confusing for u. Probably it will work either way. Oh, that's interesting by the way. I guess we can allow access for common actions in app_controller.php, right? Correct me please if not, I'm total newbie on cake y

Re: Cakephp auth component allow problem

2009-10-21 Thread Zahidur Rahman
hmm it's working if i use array. I am using version 1.2 I hope my query was confusing for u. say i want to give access for controller articles and action detail for every one but say for controller posts and action detail i want to restrict for registered user only. then what i have to do ?? Than

Re: Cakephp auth component allow problem

2009-10-21 Thread
Might you not need to use array, just write like blow: $this->Auth->allow('register', 'confirm', 'forget', 'activate','reset', 'login','logout'); Try it^^! On 10月22日, 上午10時04分, Zahidur Rahman wrote: > Hi , > How it is possible for me to allow plugins , controllers wise action > permission in c

Cakephp auth component allow problem

2009-10-21 Thread Zahidur Rahman
Hi , How it is possible for me to allow plugins , controllers wise action permission in cakephp auth allow method.. $this->Auth->allow(array('register', 'confirm', 'forget', 'activate','reset', 'login','logout')); Thanks in advance --~--~-~--~~~---~--~~ You recei

ajax and auth component: logs out when multiple ajax requests are made

2009-10-20 Thread bMilesp
Hello, i have 2 ajax requests (SWFUpload and a jquery imageScroller plugin). when i do one of the two requests, works fine. When i do the other request, the session is never set and it logs out. I have Security.level = 'medium' in core.php. the cookie is sent in both request headers; i can debug

Re: Auth component and which fields must be saved in session

2009-10-17 Thread robustsolution
('requested', $this->params)) { /* do here a test on one of the non required (auth user session key) field if it is still available if so delete all the non required */ } On Oct 17, 3:26 pm, "marco.rizze...@gmail.com" wrote: > Hi > I use the Auth component to logi

Auth component and which fields must be saved in session

2009-10-17 Thread marco.rizze...@gmail.com
Hi I use the Auth component to login in my application. I have noted that when the login is correct all fields of User model are saved in the session. How can I do so only some fields are saved in session and the other not? Thanks Marco --~--~-~--~~~---~--~~ You

Auth component + extra variables

2009-10-15 Thread jakobjp
s). Login URL: http://mydomain.com/login/group1 When someone makes a failed login attempt, he is redirected to http://mydomain.com/login instead of http://mydomain.com/login/group1. How can I make the Auth component redirect the user to .../login/ group1? ("group1" is a variable, it could be anyt

Re: Auth-Component: Check more than 1 Users-Table (more than 1 User-Model)

2009-10-10 Thread braaan
yeah that was my idea today too... (propably much easier and cleaner than adding support for another user-model ;)) thank you! greets On 9 Okt., 18:26, "Dr. Loboto" wrote: > Users and companies have at least 3 common columns - id, login and > password. Keep them in one table and put specific fie

Re: Auth-Component: Check more than 1 Users-Table (more than 1 User-Model)

2009-10-09 Thread Dr. Loboto
Users and companies have at least 3 common columns - id, login and password. Keep them in one table and put specific fields in 2 others. Point Auth to 'united' model. That's all. On Oct 9, 9:26 pm, braaan wrote: > Hello, > > my currect application has normal User (Employees) and Company models >

Auth-Component: Check more than 1 Users-Table (more than 1 User-Model)

2009-10-09 Thread braaan
Hello, my currect application has normal User (Employees) and Company models among others. => Users and companies should be able to login. Users can manage their account and Companies should be able to manage their employees (User). I didn't find a way to check companies- *and* users-table on

Re: Auth component bug

2009-10-09 Thread euromark (munich)
d in they do not go back to the page they were attempting to > > access but instead are redirected to the root of the site. > > > -Benhttp://www.benhavilland.com > > > On Oct 8, 8:37 am, ben wrote: > > > > I have the same exact issue and have been searching for a

Re: Auth component bug

2009-10-08 Thread Miles J
w.benhavilland.com > > On Oct 8, 8:37 am, ben wrote: > > > I have the same exact issue and have been searching for a solution for > > several days now... > > > On Sep 26, 4:06 am, Marcelo wrote: > > > > I'm using Auth component and this is one of the

Re: Auth component bug

2009-10-08 Thread ben
in they do not go back to the page they were attempting to access but instead are redirected to the root of the site. -Ben http://www.benhavilland.com On Oct 8, 8:37 am, ben wrote: > I have the same exact issue and have been searching for a solution for > several days now... > > On

Re: Auth component bug

2009-10-08 Thread ben
I have the same exact issue and have been searching for a solution for several days now... On Sep 26, 4:06 am, Marcelo wrote: > I'm using Auth component and this is one of the settings in my > AppController's beforeFilter() method: > > $this->

Re: Auth component loop redirect

2009-10-03 Thread Bert Van den Brande
Hmm tricky stuff indeed, must remember this one ! On Fri, Oct 2, 2009 at 3:39 PM, brian wrote: > > On Fri, Oct 2, 2009 at 9:36 AM, mathaios wrote: > > > > Brian you nailed it...I was having a small navigation element in the > > layout > > > > thank you! > > > > Yeah, that one was driving me nut

Re: Auth component loop redirect

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:36 AM, mathaios wrote: > > Brian you nailed it...I was having a small navigation element in the > layout > > thank you! > Yeah, that one was driving me nuts once. I was so happy to find that post! --~--~-~--~~~---~--~~ You received this m

Re: Auth component loop redirect

2009-10-02 Thread mathaios
gt;Auth->allow($this->action); > > http://thewebandthings.synodicsolutions.com/2009/07/01/increasing-lif... > > Also, you should explicitly set $this->Auth->loginRedirect. > > On Thu, Oct 1, 2009 at 7:27 AM, mathaios wrote: > > > I'm using the Auth component

Re: Auth component loop redirect

2009-10-01 Thread brian
Do you have an requestAction() code? If so, try adding this in AppController::beforeFilter() if (isset($this->params['requested'])) $this->Auth->allow($this->action); http://thewebandthings.synodicsolutions.com/2009/07/01/increasing-life-expectancy-with-2-lines-of-code-

Re: Auth component loop redirect

2009-10-01 Thread mathaios
Thank you, but I already did that but did not work :-( On 1 Ott, 14:06, Bert Van den Brande wrote: > Add > >     $this->Auth->allow(array('login')); > > to your beforeFilter() > > Friendly greetings, > Bert > > On Thu, Oct 1, 2009 at 1:27

Re: Auth component loop redirect

2009-10-01 Thread Bert Van den Brande
Add $this->Auth->allow(array('login')); to your beforeFilter() Friendly greetings, Bert On Thu, Oct 1, 2009 at 1:27 PM, mathaios wrote: > > I'm using the Auth component as the example in the manual, but the log- > in form keeps redirecting to himself, and F

Auth component loop redirect

2009-10-01 Thread mathaios
I'm using the Auth component as the example in the manual, but the log- in form keeps redirecting to himself, and Firefox throws the error "The page isn't redirecting properly". My app controller is: class AppController extends Controller { var $components=array(&#

Auth component bug

2009-09-26 Thread Marcelo
I'm using Auth component and this is one of the settings in my AppController's beforeFilter() method: $this->Auth->loginAction = array( 'controller' => 'users', 'action' => 'login',

Re: Using same Auth component in admin and client

2009-09-25 Thread vinodkalpaka
I have tried this one, this is similar to the previous code. Actually it should get result, but somehow fails. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cak

Re: Using same Auth component in admin and client

2009-09-24 Thread brian
$admin = Configure::read('Routing.admin'); if (isset($this->params[$admin]) && $this->params[$admin]) But I've no idea if Auth can handle having 2 models like this. On Thu, Sep 24, 2009 at 7:06 AM, vinodkalpaka wrote: > > How can I use same Auth component

Using same Auth component in admin and client

2009-09-24 Thread vinodkalpaka
How can I use same Auth component in admin and client properly? What is the use of $this->Auth->userModel ="modelname" . I am using users table in admin side and customers table in client side I have used the following code in beforeFilter() function of AppController here is the

Re: "Login failed. Invalid username or password." in Auth Component

2009-09-21 Thread Wladiston Paiva
>>> >>> Faifas >>> http://www.voveris.eu/ >>> >>> >>> >>> On Tue, Sep 15, 2009 at 22:10, Wladiston Paiva < >>> desenvolvedo...@gmail.com> wrote: >>> >>>> Hi guys! >>>> I find a problem in au

Re: "Login failed. Invalid username or password." in Auth Component

2009-09-21 Thread Wladiston Paiva
gt;> http://www.voveris.eu/ >> >> >> >> On Tue, Sep 15, 2009 at 22:10, Wladiston Paiva > > wrote: >> >>> Hi guys! >>> I find a problem in auth component. >>> >>> *User Model:* >>> class User extends AppMode

Re: "Login failed. Invalid username or password." in Auth Component

2009-09-16 Thread Wladiston Paiva
gt; > > On Tue, Sep 15, 2009 at 22:10, Wladiston Paiva > wrote: > >> Hi guys! >> I find a problem in auth component. >> >> *User Model:* >> class User extends AppModel { >> var $name = 'User'; >> } >> >> >> *Users C

Re: "Login failed. Invalid username or password." in Auth Component

2009-09-15 Thread Aivaras
Didn't you migrate to an existing database? Remember that Security::salt does not only use md5 or sha1 but also a Salt that you've filled in your core.php Faifas http://www.voveris.eu/ On Tue, Sep 15, 2009 at 22:10, Wladiston Paiva wrote: > Hi guys! > I find a problem i

"Login failed. Invalid username or password." in Auth Component

2009-09-15 Thread Wladiston Paiva
Hi guys! I find a problem in auth component. *User Model:* class User extends AppModel { var $name = 'User'; } *Users Controller:* class UsersController extends AppController { var $name = "Users"; var $uses = array('User'); var $components

Re: Using the Auth component when creating Plugins

2009-09-15 Thread Bart
I've found the solution. In the beforeFilter() instead of putting this: $this->Auth->loginAction = array ('controller'=>'users','action'=>'login'); Put the following: $this->Auth->loginAction = array ('plugin'=>'users','controller'=>'users','action'=>'login'); On 12 sep, 23:35, Bart wrote: > He

Using the Auth component when creating Plugins

2009-09-12 Thread Bart
Hello, I'm creating a plugin to act as a Blog. The main controller has the same name as the plugin (app/plugins/blog/ controllers/blog_controller.php) I'm trying to use the Auth component with this plugin. However, when a user is not logged in, the component redirects me to the followi

Re: Registration using auth component

2009-09-04 Thread WebbedIT
You need to specify $this->Auth->allow('register'); in the beforeFilter () of your users_controller.php Read about the Auth components methods for more info. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Registration using auth component

2009-09-04 Thread hemant
I want use auth component for new registration. it always ask me to login first and then prompt for registration can any one guide me how to use auth for registraion and login process --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Questions regarding Auth component/login box as an element

2009-09-02 Thread Christian
in the login function of that controller (from here: http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful-tutorial-for-using-cakephps-auth-component/) I modified that code a little to redirect to http://www.yahoo.de when the login failed. That worked. So at least I think that the con

<    1   2   3   4   5   6   7   8   9   >