Re: Auth login redirect unreliable?

2008-07-02 Thread Rich
I have this same problem but haven't been able to find a solution. If you find something could you let me know. My page keeps redirecting to myurl/img/spacer.gif which makes no sense to me. Thanks Rich On Jul 2, 6:04 am, Populus [EMAIL PROTECTED] wrote: Hi I'm having a problem with the auth

Re: Auth login redirect unreliable?

2008-07-02 Thread dr. Hannibal Lecter
Hmmm.. shouldn't it be: $this-Auth-loginRedirect = array('controller' = 'users'); // no action $this-Auth-logoutRedirect = '/'; // no array Or am I missing something? On Jul 2, 12:04 pm, Populus [EMAIL PROTECTED] wrote: Hi I'm having a problem with the auth component not redirecting

Re: Auth login redirect unreliable?

2008-07-02 Thread leo
On 2 Jul, 16:54, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: Hmmm.. shouldn't it be: $this-Auth-loginRedirect = array('controller' = 'users'); // no action $this-Auth-logoutRedirect = '/'; // no array I'm sure you're right, but the manual says this: $this-Auth-loginRedirect =

Re: Auth login redirect unreliable?

2008-07-02 Thread leo
On 2 Jul, 17:27, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: I see what you mean, but I'm not sure that you can put 'action' = '/' or 'controller' = '/'. Sorry, I missed that. Nope, I wouldn't want to be doing that even if it was valid. --~--~-~--~~~---~--~~

Re: Auth login redirect unreliable?

2008-07-02 Thread Eric
where to go after a login has succeeded function loginRedirect() { $this-log('users/LoginRedirect()', LOG_DEBUG); if (parent::getAuthGroup() === ADMIN) { $this-log('--redirecting to admin', LOG_DEBUG); $this-redirect('/admin/myCtrl/index'); } else { $this-log('--redirecting to normal

Re: Auth login redirect unreliable?

2008-07-02 Thread Rich
= false; // -- handle redirecting yourself } 2. create a loginRedirect action which determines where to go after a login has succeeded function loginRedirect() {  $this-log('users/LoginRedirect()', LOG_DEBUG);  if (parent::getAuthGroup() ===  ADMIN)  {   $this-log('--redirecting

Login infinite loop redirect, url handling

2008-07-01 Thread kaotisch
) as an array like this: array('controller'='User','action'='login') because cake doesnt add the /verwaltung/ in front of it, so i end up with sth like www.mydomain.de/verwaltung/user/login/user/login or specificly in my standard auth login action i end up in an infinite loop that leads me deeper

Login infinite loop redirect, url handling

2008-07-01 Thread kaotisch
cakedir is /verwaltung/cake appdir is /verwaltung/app/. The Problem: There seem to be problems with the paths in some situations at all, what I try to solve specificly now is the following problem that might have the same reason as the path problems. I try to use the auth component, have a login

Re: exclude default layout from login view

2008-06-27 Thread bujanga
In addition to what Jonathon states. Place your layout.ctp file into you app/views/layouts directory. Gary On Thu, Jun 26, 2008 at 6:39 AM, RJ [EMAIL PROTECTED] wrote: Hi, How should i explicitly exclude the default layout from my login page. For the other views , i need the default layout

exclude default layout from login view

2008-06-26 Thread RJ
Hi, How should i explicitly exclude the default layout from my login page. For the other views , i need the default layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: exclude default layout from login view

2008-06-26 Thread Jonathan Snook
function login () { $this-layout = 'login'; } On Thu, Jun 26, 2008 at 7:39 AM, RJ [EMAIL PROTECTED] wrote: Hi, How should i explicitly exclude the default layout from my login page. For the other views , i need the default layout --~--~-~--~~~---~--~~ You

Is it possible to clear session upon Auth login?

2008-06-25 Thread Howie
Hi I'd like to clear the session upon Auth login. However, there does not seem to be a hook/lifecycle event available to do this? The login() method is used to render the form, but does not appear to be called when the form is submitted. Presumably, Auth intercepts the form post, and upon

Multiple sites - Single Login

2008-06-24 Thread Infinite Knight
(All users start / login here) Once logged in, a user will see a menu show up on the right or left, depending on the theme they have set in their preferences, that will allow them to access the sub-apps, such as: http://sub1.domain.com http://sub2.domain.com http://sub3.domain.com etc

Re: Multiple sites - Single Login

2008-06-24 Thread francky06l
, any pointers to such would be helpful... http://www.domain.com(All users start / login here) Once logged in, a user will see a menu show up on the right or left, depending on the theme they have set in their preferences, that will allow them to access the sub-apps, such as: http://sub1

Re: Multiple sites - Single Login

2008-06-24 Thread Infinite Knight
That is why I was thinking of having it look for the original cookie set on login, then connect to the root site's DB, grab the needed row from the Users table for that specific user, then switch back to it's own DB, and set the needed session data there and take the ID from the previously

Auth + Custom Login + isAuthorized = Infinite Redirect Loop

2008-06-18 Thread Baz L
much working off of the examples in the Cook Book: http://book.cakephp.org/view/172/authentication I have the same login() function. This is what I've noticed. After isAuthorized returns false (user logs in, but is not authorized) I get redirected to: $controller-redirect($this-noaccessRedirect

Login Redirect goes to image file

2008-06-18 Thread Rich
I'm having a problem with the login redirect. everytime I login, it redirects to /users/img/spacer.gif, which is a file in my img directory. I'm using the built-in Auth login. no code in the login action . . . This is in my app_controller . . . $this-Auth-loginAction = array('controller

Bakery login problem. I forgot my username :-)

2008-06-14 Thread Serge Rodovnichenko
I forgot my username in bakery. :-) How to restore it? 'Reset password' just resets password :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Blank Login Page

2008-06-10 Thread Sam Sherlock
try putting some $this-log('custom-login-debug', 'users_controller.php login...'); to trace what you've got happening. (not to flog a dead horse but auth is great for simple systems too) 2008/6/10 Arak Tai'Roth [EMAIL PROTECTED]: I know that auth isn't the same as ACL, but they can be used

Re: Blank Login Page

2008-06-10 Thread francky06l
As I understood, you can login and never been redirect (I mean you do not see the page should be redirected to) ? Is it for admin only, or can you see the /clients when not being admin ? If so it can be an admin problem routing. hth On Jun 10, 8:01 am, Sam Sherlock [EMAIL PROTECTED] wrote: try

Re: Blank Login Page

2008-06-10 Thread Filip Camerman
On my current dev machine CakePHP gives me a completely blank page without any indication of what went wrong whenever my view uses a non- defined variable. So replace your view with one that just says hello for a second and see if that gets printed; if so you know the prob.

Re: Blank Login Page

2008-06-10 Thread Arak Tai'Roth
Well, I do appreciate the help, and would love it if someone was able to fix this problem anyways for me. I think I might just switch to auth, I originally didn't use auth because I thought it was going to be more work, clearly that is no longer the case as I could have been done this had I used

Re: Blank Login Page

2008-06-10 Thread Arak Tai'Roth
Apparently it posted the second message I sent and not the first one, so here is the first one over again. @Sam I did what you asked, and it does indeed add the messages to the error log in every function, including the admin_index function, but I don't know how this helps me @francky061

Re: Blank Login Page

2008-06-10 Thread francky06l
Did you try to redirect to another controller/action not in admin route ? On Jun 10, 8:38 pm, Arak Tai'Roth [EMAIL PROTECTED] wrote: Apparently it posted the second message I sent and not the first one, so here is the first one over again. @Sam I did what you asked, and it does indeed

Blank Login Page

2008-06-09 Thread Arak Tai'Roth
So. I have coded a login, using admin routing, to a backend administrative portion of my site. However when I actually login, all it shows is a blank page and it doesn't seem to be hitting my admin_index function in my controller. I was just wondering if anyone has any insight to this problem, I

Re: Blank Login Page

2008-06-09 Thread Sam Sherlock
a login, using admin routing, to a backend administrative portion of my site. However when I actually login, all it shows is a blank page and it doesn't seem to be hitting my admin_index function in my controller. I was just wondering if anyone has any insight to this problem, I have already

Re: Blank Login Page

2008-06-09 Thread Arak Tai'Roth
-findByUsername($this-data['User'] ['username']); if (!empty($dbuser) ($dbuser['User']['password'] == sha1($this- data['User']['password']))) have you tried using auth? 2008/6/9 Arak Tai'Roth [EMAIL PROTECTED]: So. I have coded a login, using admin

Re: Blank Login Page

2008-06-09 Thread Dardo Sordi Bogado
I wasn't sure if auth would work as easily for what I want later on, dealing with multiple groups of users. And yes I know about ACL, I just figured doing it this way now would save me micro management down the road. Auth != ACL And yes, Auth will handle multiple groups of users just fine.

Re: Blank Login Page

2008-06-09 Thread Arak Tai'Roth
I know that auth isn't the same as ACL, but they can be used together for some pretty neat stuff in my opinion. I just had looked at auth and thought that because my needs are fairly simple (3 different groups of users, only 2 that need to be accounted for, and 1 will only have one user in it),

How to display a custom message when redirecting to the login page

2008-06-05 Thread teum
Hello, It's about the Auth component (again). I'm allowing logged users to vote for a picture. Users that aren't logged can click on the vote link which redirects them to the login page. I want to inform them that they need to log in in order to be able to vote (with a message), and I don't

Re: Restricting Login Attempts with Auth Component

2008-05-28 Thread aranworld
The scenario leveille brings up is the one I'm in. This is more of an extranet than an intranet. The server is off-site, and is being accessed by many people who all share the same IP. My solution was this: 1: upon entry to user login form, check if user's IP is associated with a threshold

Re: Maintain subdomain in login redirect

2008-05-28 Thread John R
Hey folks .. OP here .. Curious if anyone has any insight on this problem that is still plaguing my app! Any assistance would be MUCH appreciated. John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group.

Re: Maintain subdomain in login redirect

2008-05-28 Thread clemos
PROTECTED] wrote: When a user is at http://roar.domain.com and clicks on say, upload photo (that requires login) http://roar.domain.com/upload, it takes them to http://www.domain.com, just like a good little app. However, after a successful login, it takes them to http://www.domain.com/upload

Re: Maintain subdomain in login redirect

2008-05-28 Thread jonknee
On May 28, 5:29 pm, John R [EMAIL PROTECTED] wrote: Hey folks .. OP here .. Curious if anyone has any insight on this problem that is still plaguing my app! Any assistance would be MUCH appreciated. John Have you tried peeking at the session and seeing what (if any) address is located at

Re: Restricting Login Attempts with Auth Component

2008-05-23 Thread leveille
[EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people

Auth login redirect pointing to image?

2008-05-23 Thread theandystratton
For some reason, my Auth component is redirecting to an image... and I'm not sure where to debug. I'm assuming this is stored in the session, and while I play with dumping some session stats, I'd figure I'd see if anyone else has the issue. The weirder issue is, I'm using the thickbox.js

Re: Auth login redirect pointing to image?

2008-05-23 Thread Sam Sherlock
Paste some code here http://bin.cakephp.org/ also have you tried removing jquery+thickbox to see what happens then? Also try setting debug to 1 or 2 in config/core.php 2008/5/23 theandystratton [EMAIL PROTECTED]: For some reason, my Auth component is redirecting to an image... and I'm not

Restricting Login Attempts with Auth Component

2008-05-22 Thread aranworld
I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people have done, or what they think of the method

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread Mathew Nik Foscarini
Assuming that your blocking their IP, because you think a hacking attempt is taking place. Usually, hacking attempts are performed by robots, and it wouldn't be hard to have the robot retry every 5 minutes. I think storing the IP address in the session isn't useful. If they fail to login

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread davidpersson
to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people have done, or what they think of the method I am

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread aranworld
It may need some changes to make it work with 1.2 but I think it's simple and does it's job. On May 22, 9:13 pm, aranworld [EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread BrendonKoz
It may need some changes to make it work with 1.2 but I think it's simple and does it's job. On May 22, 9:13 pm, aranworld [EMAIL PROTECTED] wrote: I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab

1.2 auth missing controller/action/view - redirect to login

2008-05-16 Thread Andras Kende
hello, I have a problem with 1.2 auth: http://www.kende.com/test/ - redirects to login = this is good .. but for a missing controller/action/view : http://www.kende.com/test/dadadmfsf/ - shows Not Found should also redirect first to login... ?php class AppController extends Controller { var

Re: 1.2 auth missing controller/action/view - redirect to login

2008-05-16 Thread b logica
I'd think you'd need to do something with Dispatcher for that. But I have a feeling that, were you to do that, Auth would want to redirect you to the path you originally tried after logging in, resulting in a loop. The loginRedirect path is used for when the user goes directly to login. When Auth

Re: 1.2 auth missing controller/action/view - redirect to login

2008-05-16 Thread Mathew Nik Foscarini
response. - Original Message From: Andras Kende [EMAIL PROTECTED] To: CakePHP cake-php@googlegroups.com Sent: Friday, May 16, 2008 2:21:58 PM Subject: 1.2 auth missing controller/action/view - redirect to login hello, I have a problem with 1.2 auth: http://www.kende.com/test

Re: 1.2 auth missing controller/action/view - redirect to login

2008-05-16 Thread Marcin Domanski
Sent: Friday, May 16, 2008 2:21:58 PM Subject: 1.2 auth missing controller/action/view - redirect to login hello, I have a problem with 1.2 auth: http://www.kende.com/test/ - redirects to login = this is good .. but for a missing controller/action/view : http://www.kende.com/test

Re: Custom Login for Auth Component?

2008-04-30 Thread Aitch
Folks, this *can* be done if you dig deep enough. I know it is bad karma to modify the source, but I've done it - to add LDAP authentication capability to Auth. I even have the diffs against 6311 :-) The trick is to look at the identify() method in auth.php. Essentially the hard coded call to

Re: Custom Login for Auth Component?

2008-04-30 Thread Marcin Domanski
Hey On Wed, Apr 30, 2008 at 3:49 PM, Aitch [EMAIL PROTECTED] wrote: Folks, this *can* be done if you dig deep enough. I know it is bad karma to modify the source, but I've done it - to add LDAP authentication capability to Auth. I even have the diffs against 6311 :-) The trick is to

Re: Custom Login for Auth Component?

2008-04-30 Thread Howard Glynn
I'd agree with you in most circumstances (inheritance) - in this instance I broke the advice never to touch the core The key point is not to write an LdapAuth or WhateverAuth, the objective was to create a few lines in Auth that allows you to call an external method to do whatever validation you

Custom Login for Auth Component?

2008-04-29 Thread BrendonKoz
, and they will *never* have a related password. I'd like to still use an action of login for the User model. From what I can tell, the only ways I can do this are a bit hackish...which would be the best (or is there better)? 1. $this-Auth-loginAction = array('admin' = false, 'controller' = 'members

Re: Custom Login for Auth Component?

2008-04-29 Thread Chris Hartjes
that users will not initially have any related model data in the User model, and they will *never* have a related password. I'd like to still use an action of login for the User model. From what I can tell, the only ways I can do this are a bit hackish...which would be the best

Re: Custom Login for Auth Component?

2008-04-29 Thread mbavio
to still use an action of login for the User model. From what I can tell, the only ways I can do this are a bit hackish...which would be the best (or is there better)? Well, you could always write a custom model that connects to your SSL webservice, and make sure to include the methods

Re: Custom Login for Auth Component?

2008-04-29 Thread BrendonKoz
accessible via a SSL webservice call. This means that users will not initially have any related model data in the User model, and they will *never* have a related password. I'd like to still use an action of login for the User model. From what I can tell, the only ways I can do

Re: Custom Login for Auth Component?

2008-04-29 Thread Chris Hartjes
On Tue, Apr 29, 2008 at 3:54 PM, BrendonKoz [EMAIL PROTECTED] wrote: Assuming this is something you've done before, or at least thought through...by a custom model, surely you mean extending the Model class and overriding any incompatible methods, right? I just checked all of the

Re: Custom Login for Auth Component?

2008-04-29 Thread Knud Soerensen
in the User model, and they will *never* have a related password. I'd like to still use an action of login for the User model. From what I can tell, the only ways I can do this are a bit hackish...which would be the best (or is there better)? I am working on site using openid and here

Re: Custom Login for Auth Component?

2008-04-29 Thread nate
is not stored in a database that I have access to, it is only accessible via a SSL webservice call. This means that users will not initially have any related model data in the User model, and they will *never* have a related password.  I'd like to still use an action of login for the User

Re: Custom Login for Auth Component?

2008-04-29 Thread BrendonKoz
If one doesn't exist, would an enhancement request help to solidify that? Thanks for the update, Nate. On Apr 29, 4:32 pm, nate [EMAIL PROTECTED] wrote: The Auth component will *probably* be refactored to provide for an adapter-like interface before 1.2 final.

Re: Login auth redirects wrong with sifr..

2008-04-20 Thread Mech7
Hmm what is the best practice then to allow default everything? i basically only need a login for the admin. On Apr 20, 2:19 am, Joel Perras [EMAIL PROTECTED] wrote: By allowing all actions by default in your AppController, you effectively break theAuthcomponent, since it freaks out when you

Login auth redirects wrong with sifr..

2008-04-19 Thread Mech7
I am using sifr, and some other javascripts which call othr files but then the login does not work anymore correctly for example it goes to: http://localhost/scms/admin/users/sifr/myriad_pro.swf Does anybody know a proper way to fix this, instead of changeing the paths in the javascript files

Re: Login auth redirects wrong with sifr..

2008-04-19 Thread simonb
On Apr 19, 5:03 pm, Mech7 [EMAIL PROTECTED] wrote: I am using sifr, and some other javascripts which call othr files but then the login does not work anymore correctly for example it goes to: http://localhost/scms/admin/users/sifr/myriad_pro.swf Does anybody know a proper way to fix

Re: Login auth redirects wrong with sifr..

2008-04-19 Thread Mech7
'; $this-Auth-userScope = array('User.active' = 1); //user needs to be active. $this-Auth-loginAction = array('controller' = 'users', 'action' = 'login'); $this-Auth-loginRedirect = array('controller' = 'pages', 'display' = 'home

Re: Login auth redirects wrong with sifr..

2008-04-19 Thread Joel Perras
By allowing all actions by default in your AppController, you effectively break the Auth component, since it freaks out when you allow the login() function in your Users controller. I'd bet a shiny penny that this is at least part of your problem. -J. On Apr 19, 4:46 pm, Mech7 [EMAIL PROTECTED

Maintain subdomain in login redirect

2008-04-18 Thread John R
When a user is at http://roar.domain.com and clicks on say, upload photo (that requires login) http://roar.domain.com/upload, it takes them to http://www.domain.com, just like a good little app. However, after a successful login, it takes them to http://www.domain.com/upload Any idea how I can

Re: Login redirect issue ...

2008-04-03 Thread [EMAIL PROTECTED]
I hit login FROM the subdomain, this is my $_SESSION: Array ( [Config] = Array ( [userAgent] = XXX [time] = 1207229748 [rand] = X [timeout] = 10 ) [Auth] = Array ( [redirect] =http://sample.domain.com/contest) ) The [redirect] is fine .. When I do a successful login and it goes

Re: Login redirect issue ...

2008-04-02 Thread John R
So strange .. when I hit login FROM the subdomain, this is my $_SESSION: Array ( [Config] = Array ( [userAgent] = XXX [time] = 1207229748 [rand] = X [timeout] = 10 ) [Auth] = Array ( [redirect] = http://sample.domain.com/contest ) ) The [redirect] is fine .. When I do a successful

Re: Login redirect issue ...

2008-04-01 Thread John R
Nope ... I am using routing and baseURL is commented out. Any other ideas here? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Login redirect issue ...

2008-03-30 Thread John R
I have an application that uses virtual subdomains to point to a controller. If you are in http://sample.domain.com and click Login, it takes you to http://www.domain.com/login like it is supposed to. However, when you login, it redirects to: http://www.domain.com/http:/sample.domain.com

Re: Login redirect issue ...

2008-03-30 Thread [EMAIL PROTECTED]
I get the same issue as you, however, I only get it when I'm using the cake pretty urls, not the .htaccess files. That is, when Configure::write('App.baseUrl', env('SCRIPT_NAME')); in core.php is uncommented. Is that your case ? --~--~-~--~~~---~--~~ You received

Re: Login box in layout

2008-03-24 Thread Nick Timchenko
a page refresh. And on successful login, you could either hide the login form and replace it with a 'logged-in' message. Or send back a JS command to refresh the page, so the page would reflect the new logged-in status 2) Or use the flash feature of the Session Component/Helper to return any

Re: Login box in layout

2008-03-23 Thread Dave J
Hey Nick, You're right about that. I guess you can tackle it either two ways. 1) Submit the form using AJAX, so if there's any errors, you get them back without a page refresh. And on successful login, you could either hide the login form and replace it with a 'logged-in' message. Or send back

Re: Login box in layout

2008-03-23 Thread Dardo Sordi Bogado
Store referer in session (if referer is different from actual action) and redirect to it when login is successful. Storing referer in session is an idea of AD7six (http://bin.cakephp.org/view/316159681) and it let you do some interesting tricks. On Sun, Mar 23, 2008 at 7:20 PM, Dave J [EMAIL

Login Redirected differently if coming from different forms

2008-03-05 Thread Valentin Ceaprazaru
Hola I have a question about a login action. If i use the default form on the login page everything works fine and the users are directed to their home pages. But if i use another form, that i have on another page (that has the same input names) i get redirected to the regular login form

Custom Auth Login Problem

2008-02-25 Thread BravoFoxtrot
. MyAuth also contains a login function. This function checks with the database to see if a user should be authenticated via the password in the database or the active directory. My app_controller looks like so: function beforeFilter() { if (isset($this-Auth

Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
Hi all, My user table/model has a state_id field. I'd like to configure Auth so that it only lets people login is the state is a certain value. Is there an easy way to do this? Two lines in auth.php suggest it should be possible 38: $conditions = $this-userScope; // (previously $conditions

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Dardo Sordi Bogado
Use AuthComponent::$userScope = array() // accepts conditions in the same way that Model::findAll() On Fri, Feb 15, 2008 at 8:43 AM, Tim W [EMAIL PROTECTED] wrote: Hi all, My user table/model has a state_id field. I'd like to configure Auth so that it only lets people login is the state

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread grigri
Just set $this-Auth-userScope = array('User.state_id' = WHATEVER); in your controller's beforeFilter callback. On Feb 15, 10:43 am, Tim W [EMAIL PROTECTED] wrote: Hi all, My user table/model has a state_id field. I'd like to configure Auth so that it only lets people login is the state

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
table/model has a state_id field. I'd like to configure Auth so that it only lets people login is the state is a certain value. Is there an easy way to do this? Two lines in auth.php suggest it should be possible 38: $conditions = $this-userScope; // (previously $conditions is a null

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
] wrote: Hi all, My user table/model has a state_id field. I'd like to configure Auth so that it only lets people login is the state is a certain value. Is there an easy way to do this? Two lines in auth.php suggest it should be possible 38: $conditions = $this-userScope

login and register on same page

2008-02-13 Thread tom
Hi, I have a page with a user registration form and login form which is using the Auth component. The issue is that since both use the same User model, both forms are populating with the same data. i.e if you enter invalid registration data both the login and registration form are then populated

Re: user authentication example...login redirects

2008-02-09 Thread MonkeyGirl
The 'allowEmpty' key should be assigned a boolean value. Ah, thank you. That makes sense. So I've replaced this: var $validate = array( 'name' = array( 'required' = VALID_NOT_EMPTY ) ); With this now: var $validate = array( 'name' = array( array(

Re: user authentication example...login redirects

2008-02-09 Thread duRqoo
var $validate = array( 'name' = array( 'rule' = array('custom', VALID_NOT_EMPTY), 'message' = 'Can\'t be empty' ) ); This is how i deal with not empty values. VALID_NOT_EMPTY may be deprecated, but still it's just a constat so i can replace it with

Re: user authentication example...login redirects

2008-02-08 Thread Siebren Bakker
it into the database just fine..but after that, nothing happens... no flash, no redirect. Have you made a login() function in /app/controllers/ users_controller.php? It looks like you've got the creation of new users sorted, but you now need to let them log in, which is really a separate process. You need

Re: user authentication example...login redirects

2008-02-08 Thread MonkeyGirl
also, in regards to the second error, make sure in your model-validate array, that you have apostrophes around the words 'VALID_NOT_EMPTY', which should clear out that error. Will it? I thought VALID_NOT_EMPTY *was* a constant, not a literal string. I've also heard on someone's blog that

Re: user authentication example...login redirects

2008-02-08 Thread MonkeyGirl
The code i have creates my user and puts it into the database just fine..but after that, nothing happens... no flash, no redirect. Have you made a login() function in /app/controllers/ users_controller.php? It looks like you've got the creation of new users sorted, but you now need to let them

Re: user authentication example...login redirects

2008-02-08 Thread Siebren Bakker
in 1.2, it is required to be set in a string, or you could use the following validation rule: allowEmpty The 'allowEmpty' key should be assigned a boolean value. If ' allowEmpty' is false, data passed to the model's save() method must include the field and a non-empty data value for that field.

user authentication example...login redirects

2008-02-07 Thread polomasta
'])) { $this-User-create(); $this-User-save($this-data); $this-redirect('login'); } } } what am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group

Re: user authentication example...login redirects

2008-02-07 Thread Siebren Bakker
try using the full path in the login redirect, i.e. $this-redirect('/users/login'); you also should add the 'true' tag, if you are using CakePHP1.2, to automatically call the exit() function after the redirect. i.e. $this-redirect('/users/login', true); Hope this helps! On Feb 7, 2008 5:43 PM

Re: user authentication example...login redirects

2008-02-07 Thread polomasta
no luck yet, I tried this as well: $this-redirect(array('controller'='users','action'='login')); I'm also getting these things in the debug area... Warning (512): /var/www/html/bradsCakeApp/app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 263] Notice (8): Use of undefined

Re: User Management\Login\Auth Framework

2008-02-07 Thread Mr-Yellow
DAuth (patch in forgotpassword etc) + Cake ACL (patch in multi-groups or whatever) Good start: http://www.realm3.com/articles/setting_up_user_groups_with_acl_and_auth_in_cakephp_1.2 -Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: User Management\Login\Auth Framework

2008-02-07 Thread Mr-Yellow
Oh also a good idea to add HumanCheck or some kind of CAPTCHA on the forgotpassword and register pages (even if turned off by default you may need it later) -Ben On Feb 8, 4:10 pm, Mr-Yellow [EMAIL PROTECTED] wrote: DAuth (patch in forgotpassword etc) + Cake ACL (patch in multi-groups or

Re: User Management\Login\Auth Framework

2008-02-06 Thread RichardAtHome
Not that I know of. Would love to hear of one if there is! On Feb 6, 1:40 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Anyone know if there is a well-tuned user management framework available within the CakePHP community? Or even one that lies outside of this community? I'd like to

Re: User Management\Login\Auth Framework

2008-02-06 Thread Braindead
There is an article in the bakery about ACL. Maybe this is something you are searching for? http://bakery.cakephp.org/articles/view/acl-management-plugin Hope this helps... Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: User Management\Login\Auth Framework

2008-02-06 Thread jakecake
Hi, I am working on a plugin to manage auth/acl/registration. I have a full working version now, but I need some returns from the community... I cannot register in the bakery (problem since few days/ weeks...) so I cannot publish. Here are some screenshots:

Re: User Management\Login\Auth Framework

2008-02-06 Thread RichardAtHome
@jakebaker: Look exactly what I've been looking for! Quick, someone sort this man out with a bakery account! :-) On Feb 6, 1:22 pm, jakecake [EMAIL PROTECTED] wrote: Hi, I am working on a plugin to manage auth/acl/registration. I have a full working version now, but I need some returns from

Re: User Management\Login\Auth Framework

2008-02-06 Thread jakecake
@jakebaker: Look exactly what I've been looking for! Quick, someone sort this man out with a bakery account! :-) Thanks Richard! I thinks it's a pitty that the cake is down since so long time, and during the cake fest!! Jakecake --~--~-~--~~~---~--~~ You

Re: User Management\Login\Auth Framework

2008-02-06 Thread Axel Ariel Arroyo Braconi
Jake , bakery is working i create an account recently, and i can write a post. Whats your problem? On 2/6/08, jakecake [EMAIL PROTECTED] wrote: @jakebaker: Look exactly what I've been looking for! Quick, someone sort this man out with a bakery account! :-) Thanks Richard! I thinks it's

Re: User Management\Login\Auth Framework

2008-02-06 Thread Axel Ariel Arroyo Braconi
If you want, i can create an account for you? but quick post that! look like a cool plugin! On 2/6/08, Axel Ariel Arroyo Braconi [EMAIL PROTECTED] wrote: Jake , bakery is working i create an account recently, and i can write a post. Whats your problem? On 2/6/08, jakecake [EMAIL PROTECTED]

Re: User Management\Login\Auth Framework

2008-02-06 Thread jakecake
Jake , bakery is working i create an account recently, and i can write a post. Whats your problem? My problem is that I never received the confirmation mail. If I try to register again, I get a weird message in the form so that this username is already registred (and I'm supposed to reset it).

Re: User Management\Login\Auth Framework

2008-02-06 Thread Axel Ariel Arroyo Braconi
Jake i create an account and i send an email with datas access for you, is active, just change the email, and password. On 2/6/08, jakecake [EMAIL PROTECTED] wrote: Jake , bakery is working i create an account recently, and i can write a post. Whats your problem? My problem is that I

Re: Display toolbar after login

2008-01-28 Thread Tulio Faria
In app_controller, use beforeFilter callback for verify if the user is logged in, something like this: function beforeFilter(){ if ($this-Session-check(userInfo)){ $this-set(loggedIn, true); } } in your default.ctp layout (or other), you check if $loggedIn has been

<    7   8   9   10   11   12   13   14   >