Re: serious problem with cakephp about CakePHP Auth Component Permissions

2010-06-15 Thread hoss7
i want Users, Groups Permissions for Groups, for my website 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 group, send

Re: serious problem with cakephp about CakePHP Auth Component Permissions

2010-06-15 Thread Jeremy Burns | Class Outfit
Have you read the guide? http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 16 Jun 2010, at 05:45, hoss7 wrote: i want Users, Groups Permissions for Groups, for my website Check out the

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

2010-06-09 Thread Narendra Padala
Thanks sir, its working fine.! On Tue, Jun 8, 2010 at 8:40 PM, calvin cal...@rottenrecords.com 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 crazycake...@gmail.com wrote: Hi i am

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=POSTdata[User][username]=admindata[User][password]=admin any one

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: 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 525]

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: Auth Component and user information.

2010-06-07 Thread cricket
On Jun 7, 11:39 am, saidbakr said@gmail.com 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.

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 zijn.digi...@gmail.com wrote: On Jun 7, 11:39 am, saidbakr said@gmail.com wrote: Hi, I use User model to handle user's basic data such as Name, username, password and so on.

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] =

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 cricket
On Jun 7, 2:19 pm, saidbakr said@gmail.com 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

Re: Auth Component and user information.

2010-06-07 Thread cricket
On Jun 7, 2:33 pm, saidbakr said@gmail.com 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/auth-component

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 out

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 junke...@gmail.com 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 action, cake

Re: XMLHttpRequest bypassing Auth component

2010-05-27 Thread Miles J
://groups.google.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 do i

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=gstq=authpli=1 basically the auth component works fine if i browse to the json page using my browser but if it uses

Re: Updating user values in Auth component

2010-05-01 Thread WhyNotSmile
it a try :) Enjoy,    John Ps. the only issue I could see, is that the password may not be available! On Apr 28, 5:16 pm, WhyNotSmile sharongilmor...@googlemail.com wrote: I'm using the built-in Auth component with CakePHP.  In part of my site, I allow my user to update

Re: CakePHP Auth Component - Users, Groups Permissions

2010-04-30 Thread hoss7
$this-layout = 'admin'; }else { $this-layout = 'default'; } //Override default fields used by Auth component $this-Auth-fields = array('username'='email_address','password'='password'); //Set application wide actions which do not require

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

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 others

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, at 06:45, hoss7 wrote: i want Auth

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 update

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 session key. I

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 j.andersen...@gmail.com 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

Re: Joining Data for Auth Component to read

2010-04-22 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

Re: Joining Data for Auth Component to read

2010-04-22 Thread cricket
this association? On Apr 21, 1:19 am, thatsgreat2345 thatsgreat2...@gmail.com wrote: 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

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 checking

Re: Joining Data for Auth Component to read

2010-04-21 Thread capo64
Group. There's no way to get Auth to use this association? On Apr 21, 1:19 am, thatsgreat2345 thatsgreat2...@gmail.com wrote: 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

Re: Problem with Auth Component hashes

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

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

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 the session for later use

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

Re: Problem with Auth Component hashes

2010-04-19 Thread WebbedIT
...@gmail.com wrote:  I think the Auth uses a salt. On Sun, Apr 18, 2010 at 6:43 PM, Stefano Martins xstefa...@gmail.comwrote: 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: 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-authorize =

Re: CakePHP Auth Component cannot remember url before authentication

2010-04-19 Thread cricket
On Apr 19, 6:19 am, Prof. No Time libertylivingst...@gmail.com 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' =

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

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 xstefa...@gmail.com wrote: Hello folks, As I was studying CakePHP and the Auth

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 xstefa...@gmail.comwrote: 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

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. The Auth

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

2010-04-16 Thread John Andersen
) 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 Questions sitehttp://cakeqs.organd help others

Re: CakePHP Auth Component cannot remember url before authentication

2010-04-16 Thread cricket
On Apr 16, 1:40 am, Prof. No Time libertylivingst...@gmail.com 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 WORK

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

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 that I can retrieve it via $this-Auth

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 the Auth component uses

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

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: 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 i...@ldsign.de 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

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. Thanks, Check out the new CakePHP

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 neomanand...@gmail.com 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

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 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

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 = $thisPermissions

Re: Auth Component does not logout via URL

2009-11-05 Thread robustsolution
protected function _logout() {         if (!empty($this-Cookie)) {                 //this ensures if you were using the Cookie component along with the Auth component (the famous remember me checkbox)                 //and you have saved the credentials inside cookie                 //you

Re: Invalid argument using Auth Component

2009-11-05 Thread John Andersen
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 = $thisPermissions['Permission

Re: Auth Component does not logout via URL

2009-11-04 Thread Prof. No Time
/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 me checkbox)                 //and you

Re: Auth Component does not logout via URL

2009-11-02 Thread robustsolution
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 credentials

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

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

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 jaya...@gmail.com 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

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

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 zahid01...@gmail.com wrote: Hi , How it is possible for me to allow plugins , controllers wise action

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 ??

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

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

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 marco.rizze...@gmail.com wrote: Hi I use the Auth component to login in my

Auth component + extra variables

2009-10-15 Thread jakobjp
/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 anything, which is checked against the DB

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 drlob...@gmail.com wrote: Users and companies have at least 3 common columns - id, login and password. Keep them in one table and

Re: Auth component bug

2009-10-09 Thread euromark (munich)
to the root of the site. -Benhttp://www.benhavilland.com On Oct 8, 8:37 am, ben b...@havilland.net 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 marcel...@gmail.com wrote: I'm using Auth component

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: 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 martin.platt...@gmail.com wrote: Hello, my currect application has normal User

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 marcel...@gmail.com wrote: I'm using Auth component and this is one of the settings in my AppController's beforeFilter() method: $this-Auth-loginAction = array

Re: Auth component bug

2009-10-08 Thread ben
using Auth component and this is one of the settings in my AppController's beforeFilter() method: $this-Auth-loginAction = array(                         'controller' = 'users',                         'action' = 'login',                         Configure::read('Routing.admin') = false

Re: Auth component bug

2009-10-08 Thread Miles J
issue and have been searching for a solution for several days now... On Sep 26, 4:06 am, Marcelo marcel...@gmail.com wrote: I'm using Auth component and this is one of the settings in my AppController's beforeFilter() method: $this-Auth-loginAction = array

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 bally.z...@gmail.com wrote: On Fri, Oct 2, 2009 at 9:36 AM, mathaios mathaio...@gmail.com wrote: Brian you nailed it...I was having a small navigation element in the layout thank you! Yeah,

Re: Auth component loop redirect

2009-10-02 Thread mathaios
($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 mathaio...@gmail.com wrote: I'm using the Auth component as the example in the manual, but the log- in form

Re: Auth component loop redirect

2009-10-02 Thread brian
On Fri, Oct 2, 2009 at 9:36 AM, mathaios mathaio...@gmail.com 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

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','RequestHandler

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 mathaio...@gmail.com wrote: I'm using the Auth component as the example in the manual, but the log- in form keeps redirecting to himself, and Firefox throws

Re: Auth component loop redirect

2009-10-01 Thread mathaios
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','RequestHandler

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-cakephp-auth-component/ Also

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', Configure::read('Routing.admin') = false

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

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 code $this-pos

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 vinod@gmail.com wrote: How can I use same Auth component in admin and client

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

2009-09-21 Thread Wladiston Paiva
desenvolvedo...@gmail.com wrote: 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

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

2009-09-21 Thread Wladiston Paiva
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 desenvolvedo...@gmail.com wrote: Hi guys! I find a problem in auth

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

2009-09-16 Thread Wladiston Paiva
at 22:10, Wladiston Paiva desenvolvedo...@gmail.comwrote: 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

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

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 = array('Auth'); function

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

2009-09-15 Thread Aivaras
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 = array('Auth'); function beforeFilter

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 following address

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

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

Questions regarding Auth component/login box as an element

2009-09-02 Thread Christian
-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 controller is used at all. But then the question is: Why does the login not work? I modified the security's hashing algorithm to MD5, so

Re: Auth Component

2009-08-01 Thread Martin Kirchgessner
var $components = array('Auth'); to my AppController. Now i need to login on every single page, is there a way to remove the Authentication within certain controllers? thanks pete -- View this message in context: http://www.nabble.com/Auth-Component-tp24749664p24749664.html Sent from

Auth component, method login()

2009-08-01 Thread l4yercake
Hi all, I have a question with regards to the login method, which in the blog tutorial in the manual and other tutorials is left blank and handled magically by the Auth component. I am concerned with security when it comes to what is input by the user. Does the Auth component filter/clean

<    1   2   3   4   5   6   7   8   9   >