cake 1.2 Auth component not logging in

2009-02-27 Thread aka
I keep running in to this problem over and over again. Whenever I implement the cakephp 1.2 Auth component I can't login (and yes, I'm sure the login credentials are right). The password is saved with the sha1 algorithm and the salt value has been changed. New cake installation + a ne

Re: Extending built-in Auth Component?

2009-02-17 Thread jrevillini
t in the startup method: if ($controller->action == 'login' && isset($controller->data[$this->userModel])) { In my application, I'm not going to worry too much about them changing things on the LDAP server minute to minute, so I use the above if statemen

Re: Debugging Auth component

2009-02-04 Thread Alfredo Quiroga-Villamil
Glad you figured it out Andrea, way to go. Regards, Alfredo On Wed, Feb 4, 2009 at 2:30 PM, Andrea Cardinale wrote: > > Today I was on the subway thinking to everything but Cake when I > understood what I was doing wrong and I can't believe it-.- > After completing the ACL tutorial and when re

Re: Debugging Auth component

2009-02-04 Thread Andrea Cardinale
Today I was on the subway thinking to everything but Cake when I understood what I was doing wrong and I can't believe it-.- After completing the ACL tutorial and when redoing it I cleaned my acos table leaving only the root 'controllers' record. I thought that having permission on it allowed acce

Re: Debugging Auth component

2009-02-04 Thread Mirthis
Hi Alfredo, thanks for your support, I really appreciate it. I cah do some test this evening, but I'm not sure on what you suggest to do. I mean, I can remove acl tables and component and keep auth in place but I'm pretty sure that in that way is going to work and I agree with you that the issue i

Re: Auth component not working in 1.2.1.8004

2009-02-04 Thread MalContented
I don't think so, I have the following 2 lines in routes.php Router::connect('/login', array('controller' => 'user', 'action' => 'login')); Router::connect('/logout', array('controller' => 'user', &

Re: Debugging Auth component

2009-02-03 Thread Alfredo Quiroga-Villamil
gt;> >>>> Andrea: >>>> >>>> Check and make sure you don't have caching enabled. If you do, clean >>>> up the /tmp/ directory and try again. This sometimes when in dev. mode >>>> causes problems. >>>> >>>>

Re: Auth component not working in 1.2.1.8004

2009-02-03 Thread Gwoo
sounds like you have the wrong fields. Everything works just fine. Please see the AuthComponent test cases in the nightly build or svn version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: Debugging Auth component

2009-02-03 Thread Andrea Cardinale
try again. This sometimes when in dev. mode >> causes problems. >> >> Regards, >> >> Alfredo >> >> >> On Sat, Jan 31, 2009 at 5:18 AM, Andrea Cardinale wrote: >>> >>> Hi guys, I'm getting quite crazy with the auth component. >

Re: Auth component not working in 1.2.1.8004

2009-02-03 Thread Andrea Cardinale
On Tue, Feb 3, 2009 at 10:32 PM, Zoltan wrote: > > I'm getting something like that too. Login form based on the code in > book.cakephp.org, but the page just reloads with no error. > > Zoltan > I haven't though about it before, but I'm experiencing some trouble with Auth too recently and I've up

Re: Auth component not working in 1.2.1.8004

2009-02-03 Thread Zoltan
I'm getting something like that too. Login form based on the code in book.cakephp.org, but the page just reloads with no error. Zoltan On Feb 2, 12:17 pm, MalContented wrote: > I have an application build with cake 1.2.0.7962 and implementing the > simple authentication detailed in the online m

Auth component not working in 1.2.1.8004

2009-02-02 Thread MalContented
I have an application build with cake 1.2.0.7962 and implementing the simple authentication detailed in the online manual. I just upgraded to 1.2.1.8004 and now can no longer log in. No messages are displayed and 40 dots are displayed in the password box (the length of the password string) when th

Re: Debugging Auth component

2009-02-01 Thread Andrea Cardinale
M, Andrea Cardinale wrote: >> >> Hi guys, I'm getting quite crazy with the auth component. >> Some days ago I followed the 'Simple Acl controlled Application' >> tutoriale and everything worked fine. After that I start adding stuff >> to my user model a

Re: Debugging Auth component

2009-01-31 Thread Alfredo Quiroga-Villamil
Andrea: Check and make sure you don't have caching enabled. If you do, clean up the /tmp/ directory and try again. This sometimes when in dev. mode causes problems. Regards, Alfredo On Sat, Jan 31, 2009 at 5:18 AM, Andrea Cardinale wrote: > > Hi guys, I'm getting quite cra

Debugging Auth component

2009-01-31 Thread Andrea Cardinale
Hi guys, I'm getting quite crazy with the auth component. Some days ago I followed the 'Simple Acl controlled Application' tutoriale and everything worked fine. After that I start adding stuff to my user model and user controller and now Auth doesn't work anymore. I can login

Re: Question about Auth component caching

2009-01-29 Thread Mee
Well..thanks a lot then :) On 29 Січ, 23:32, Miles J wrote: > No that's pretty much the only way to refresh the Auth user session. > Any variants of updating the session manually works. > > On Jan 29, 11:18 am, Mee wrote: > > > Hello, > > >  As far as I see Auth->User is cached in session, but

Re: Question about Auth component caching

2009-01-29 Thread Miles J
No that's pretty much the only way to refresh the Auth user session. Any variants of updating the session manually works. On Jan 29, 11:18 am, Mee wrote: > Hello, > >  As far as I see Auth->User is cached in session, but when I change > some fields in user's record I need to update cache. I do i

Question about Auth component caching

2009-01-29 Thread Mee
Hello, As far as I see Auth->User is cached in session, but when I change some fields in user's record I need to update cache. I do it in a wierd way: $user = $this->User->findById($this->Auth->user('id')); $this->Session->write($

Re: Auth Component not hashing password

2009-01-27 Thread Smelly_Eddie
, 11:52 am, Ivan wrote: > Is there any way to get the Auth component to hash the "confirm > password" input as well? I think that if the password's being hashed > for security reasons, then it's inconsistent not to be able to set the > option of hashing some other pas

Re: Auth Component not hashing password

2009-01-26 Thread Ivan
Is there any way to get the Auth component to hash the "confirm password" input as well? I think that if the password's being hashed for security reasons, then it's inconsistent not to be able to set the option of hashing some other password type input. (I know it can always

Re: Include Auth component for Missing Controllers/Actions?

2009-01-13 Thread Mark
;controller->beforeFilter() and > $this->controller->beforeRender() in AppError manually. Don't know is it > right way, but > > it works. > > On Jan 12, 9:08 am, Mark wrote: > > > It seems as though AppController is not included when there is an > > erro

Re: Include Auth component for Missing Controllers/Actions?

2009-01-13 Thread Mark
app_controller and app_error are sitting in the "app" folder. I have no child beforeFilter()s. On Jan 12, 12:27 am, Miles J wrote: > Where did you place your appcontroller? Also try doing a > parent::beforeFilter() in child beforeFilter()s. --~--~-~--~~~---~--~~ Y

RE: Wrestling with the Auth Component

2009-01-12 Thread websta*
y, January 13, 2009 9:52 AM To: cake-php@googlegroups.com Subject: Re: Wrestling with the Auth Component On Mon, Jan 12, 2009 at 3:35 PM, Rob Wilkerson wrote: >> When using the admin param in your route, your effectively pointing your >> route to AdministratorsController::admin_login

Re: Wrestling with the Auth Component

2009-01-12 Thread Rob Wilkerson
On Mon, Jan 12, 2009 at 3:48 PM, Miles J wrote: > > Arent you not supposed to allow() the login action also. That's my understanding from the docs, but I think it relates to explicit allowance rather than being rolled into an "*" allowance. Of course, I haven't gotten to the point of actually lo

Re: Wrestling with the Auth Component

2009-01-12 Thread Rob Wilkerson
On Mon, Jan 12, 2009 at 3:35 PM, Rob Wilkerson wrote: >> When using the admin param in your route, your effectively pointing your >> route to AdministratorsController::admin_login -> you specified login as >> your login method Okay, you're dead-on. As soon as I rename the login() method to admin

Re: Wrestling with the Auth Component

2009-01-12 Thread Miles J
Arent you not supposed to allow() the login action also. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Wrestling with the Auth Component

2009-01-12 Thread Rob Wilkerson
On Mon, Jan 12, 2009 at 3:25 PM, websta* wrote: > > You got debug set to 1 or 2 right? And its still giving you blank page? Argh. I forgot about the obvious first step. I'm still not used to having a full-on debug mode available to me. That got me past one problem (trailing whitespace in my rout

RE: Wrestling with the Auth Component

2009-01-12 Thread websta*
ake-...@googlegroups.com] On Behalf Of Rob Wilkerson Sent: Tuesday, January 13, 2009 9:12 AM To: CakePHP Subject: Wrestling with the Auth Component I've been at this for a couple of hours now and I seem to be stuck. I'm trying to enable a pretty simple admin section for an app and would like to get

Wrestling with the Auth Component

2009-01-12 Thread Rob Wilkerson
I've been at this for a couple of hours now and I seem to be stuck. I'm trying to enable a pretty simple admin section for an app and would like to get familiar with the Auth component rather than rolling my own. I'm varying a bit from the convention, here, so I'll try to pr

Re: Include Auth component for Missing Controllers/Actions?

2009-01-12 Thread Dr. Loboto
to change this behavior? Most notably, I need > the Auth component to be included. > > I'm trying to add my own AppError class, but it needs to extend > ErrorHandler, so I don't know how to get it to include AppController. > > Any help would be much appreciated. --~--~

Re: Include Auth component for Missing Controllers/Actions?

2009-01-12 Thread Miles J
Where did you place your appcontroller? Also try doing a parent::beforeFilter() in child beforeFilter()s. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@

Include Auth component for Missing Controllers/Actions?

2009-01-11 Thread Mark
It seems as though AppController is not included when there is an error. Is there any way to change this behavior? Most notably, I need the Auth component to be included. I'm trying to add my own AppError class, but it needs to extend ErrorHandler, so I don't know how to get it

Re: Problem with auth component

2008-12-31 Thread j0n4s.h4rtm...@googlemail.com
if I understood the thread opener he wants to have an automagical redirect to the login page after x min of inactivity by the user where x is the SessionTimeout. If you want that, I do not think CakePHP does it. Typo3 for instance does that (and it is very annoying being a developer to have that f

Re: Problem with auth component

2008-12-30 Thread gearvOsh
What does your AppController beforeFilter() look like? http://www.milesj.me/blog/read/5/using-cakephps-auth-component/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this g

Re: Problem with auth component

2008-12-30 Thread vikas
and ya i have to clerify that i have written this line in 'app_controller' file: * var $components = array('Auth'); --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Problem with auth component

2008-12-30 Thread vikas
ya I have set Auth to be used across all controllers. It is ok that only authorised user can access that controller..thats not problem for me. but the problem is that loggedin user automatically loggedout if he remains idle for few minutes...(I have mentioned this problem before also..), and he st

Re: Problem with auth component

2008-12-30 Thread WebbedIT
Have you set Auth to be used across all controllers? If so Auth by default will not allow access to any controller/action unless there is an authorised user. If they are not authorised, Auth will redirect them to '/app/User/login'. --~--~-~--~~~---~--~~ You receiv

Problem with auth component

2008-12-30 Thread vikas
hi I have used auth component in login page. so i havent used session because Its automatic in the Auth component. now the problem is after login by valid user, if user will remain idle for few minutes it will automatically loggedout, thats ok. but after automatic logged out he still stays on

Re: Auth Component not hashing password

2008-12-27 Thread papajoe
Dang. It's a multiplie part form and someone changed the username field to 'disabled' from 'readonly'. Once we put a hidden form field in, the Auth component did it's magic. Something to note though for future reference. Thanks! On Dec 27, 9:40 pm, Primate

Re: Auth Component not hashing password

2008-12-27 Thread Primate
ashed. On Dec 27, 9:32 pm, papajoe wrote: > Is there any reason why the Auth component would NOT has the password. > We had this working and suddenly the password is soming out as clear > text. > > We're using 1.2rc3 > > This: > > $this->data['Member']['pa

Auth Component not hashing password

2008-12-27 Thread papajoe
Is there any reason why the Auth component would NOT has the password. We had this working and suddenly the password is soming out as clear text. We're using 1.2rc3 This: $this->data['Member']['password'] == $this->Auth->password($this->data ['Memb

Security problem on Auth component when using XMLHttpRequest via POST (AJAX)

2008-12-22 Thread Nic
Hello! first at all, thanks for your attention! I have a very weird problem, this is it: I have a Javascript file (AJAX) that is sending a XMLHttpRequest via POST to a cakephp- controller with has the Auth component implemented and a beforeFilter function too; but when the request is made via

Re: how to set session when Auth component is used in login page

2008-12-20 Thread vikas
thanks its working.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...

Re: how to set session when Auth component is used in login page

2008-12-19 Thread gearvOsh
Its automatic in the Auth component, just do this. if ($this->Auth->user()) { // they are logged in } If user() is null, that means they are not logged in. Hope that helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

how to set session when Auth component is used in login page

2008-12-19 Thread vikas
hello every one... I am learning cakephp myself.. I have used auth component in login page. now I want to set session for that logged in user.. so is there need to use session component or use auth session directly? --~--~-~--~~~---~--~~ You received this

Integrating CakePHP Auth Component with ExtJS

2008-12-17 Thread pkclarke
Has anyone had experience integrating the CakePHP Auth Component with ExtJS? I have found that when a user is not logged-in and they try to view an ExtJS page: the page is displayed, but without any information passed from the controller. I would expect that they would be redirected to the

AW: custom redirect using auth component except in one specific controller

2008-12-16 Thread Liebermann, Anja Carolin
@googlegroups.com] Im Auftrag von MrSensitive Gesendet: Montag, 15. Dezember 2008 12:30 An: CakePHP Betreff: Re: custom redirect using auth component except in one specific controller never mind, solved it by creating an additional action in the users controller to handle custom redirects and the

Re: custom redirect using auth component except in one specific controller

2008-12-15 Thread MrSensitive
all, I'm having teh following problem: > > The application I'm writing serves three distinct user types, each > having their own separated workspace. > > this has been implemented by a custom redirect routine that fires > after a sucessful login (autoRedirect is set to fals

custom redirect using auth component except in one specific controller

2008-12-15 Thread MrSensitive
Hi all, I'm having teh following problem: The application I'm writing serves three distinct user types, each having their own separated workspace. this has been implemented by a custom redirect routine that fires after a sucessful login (autoRedirect is set to false in the Auth compon

Re: SQL error with Auth Component?

2008-12-06 Thread thatsgreat2345
Checkout at the bottom of this http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited It seems to work, basically allows everything in the beforeFilter in the app, then in the users_controller you recall parent::beforeFilter () , then set the allow. I'm un

Re: SQL error with Auth Component?

2008-12-06 Thread gearvOsh
It seems this works below, but my previous code does not. $this->Auth->allowedActions = array('signup', 'reset', 'verify', 'forgot'); Perhaps something wrong with the docs? http://book.cakephp.org/view/247/AuthComponent-Methods#allow-382 --~--~-~--~~~---~--~~ You

SQL error with Auth Component?

2008-12-06 Thread gearvOsh
So Im working with the auth component, heres my AppController. class AppController extends Controller { var $components = array('Auth'); function beforeFilter() { // Authenticate if (isset($this->Auth)) { Secu

Re: Log last login using Auth component

2008-11-29 Thread Jon Molesa
In order to run and updates against the users table you need to prevent the auth component from auto redirecting after $this->Auth->user() with: function beforeFilter() { $this->Auth->autoRedirect = false; } then in your login routine just set $this->User->last_login =

Log last login using Auth component

2008-11-29 Thread maytawn
I'm looking for some advice on how I might go about capturing the date/ time a user last successfully logged in. I'm using the Auth component and authentication is working perfectly. I'm trying to extend the functionality by updating a field called 'last_login' i

AW: regarding Auth Component..

2008-11-17 Thread Liebermann, Anja Carolin
05 An: CakePHP Betreff: Re: regarding Auth Component.. Seems like you might be mixing authorization and authentication to me. Are you using ACL ? On 17 Nov, 06:17, "Liebermann, Anja Carolin" <[EMAIL PROTECTED]> wrote: > And  would the group id be > $this->A

Re: regarding Auth Component..

2008-11-17 Thread Joel Perras
gt; -Ursprüngliche Nachricht- > Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von > thatsgreat2345 > Gesendet: Donnerstag, 13. November 2008 17:35 > An: CakePHP > Betreff: Re: regarding Auth Component.. > > For just id $this->Auth->user('id'

Re: regarding Auth Component..

2008-11-17 Thread Dardo Sordi Bogado
legroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von > thatsgreat2345 > Gesendet: Donnerstag, 13. November 2008 17:35 > An: CakePHP > Betreff: Re: regarding Auth Component.. > > > For just id $this->Auth->user('id'); > > On Nov 13, 6:32 am, "dr. Hann

AW: regarding Auth Component..

2008-11-17 Thread Liebermann, Anja Carolin
And would the group id be $this->Auth->group('id'); ? Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von thatsgreat2345 Gesendet: Donnerstag, 13. November 2008 17:35 An: CakePHP Betreff: Re: regarding Auth Component

Re: regarding Auth Component..

2008-11-13 Thread thatsgreat2345
For just id $this->Auth->user('id'); On Nov 13, 6:32 am, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > See the value of $this->Auth->user() > > Hope that helps! > > On Nov 13, 9:45 am, Abhishek <[EMAIL PROTECTED]> wrote: &g

Re: regarding Auth Component..

2008-11-13 Thread dr. Hannibal Lecter
See the value of $this->Auth->user() Hope that helps! On Nov 13, 9:45 am, Abhishek <[EMAIL PROTECTED]> wrote: > Hi, > Am using auth component for user authentication ... > > How do i fetch the value of the id of the user who has been validated > by the Auth Compon

regarding Auth Component..

2008-11-13 Thread Abhishek
Hi, Am using auth component for user authentication ... How do i fetch the value of the id of the user who has been validated by the Auth Component for use in any of the controller functions .. Regards Abhishek --~--~-~--~~~---~--~~ You received this message

Re: Extending built-in Auth Component?

2008-11-03 Thread Nathaniel Price
I've got it working, yes, though I'm still a bit dissatisfied with the solution I came up with. For one, you can't refer to AuthComponent via $this->Auth inside your controller anymore, it has to be $this- >LdapAuth. Not sure how much that will affect things. First an explanation of what this doe

Re: Extending built-in Auth Component?

2008-11-03 Thread [EMAIL PROTECTED]
Hi Nathaniel, Did you get your AuthComponent extension working? If so, would you like to share it? :) I've been looking for LDAP authentication in cake for some time, but I'm not sure how to get to it. -- alx --~--~-~--~~~---~--~~ You received this message becau

Re: 404 Errors Stop Working When Using Auth Component

2008-10-30 Thread Rahil
!method_exists($controller, $controller->action) // Let the user in if the method does not exist; preserve 404s ); On Oct 29, 5:02 pm, Rahil <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm using the Auth component and here is my beforeFilter() in

404 Errors Stop Working When Using Auth Component

2008-10-29 Thread Rahil
Hi everyone, I'm using the Auth component and here is my beforeFilter() in my controller: function beforeFilter() { $this->Auth->allow('*'); $this->Auth->deny('add', 'delete', 'edit'); $this->Auth->

Re: Extending built-in Auth Component?

2008-10-24 Thread Nathaniel Price
wont need to > change anything in auth. > > and all user information will be store in ldap > > On 23 Oct, 22:10, Nathaniel Price <[EMAIL PROTECTED]> wrote: > > > I'd like to extend the Auth component in such a way as to be able to > > use LDAP to log users

Re: Extending built-in Auth Component?

2008-10-24 Thread Nathaniel Price
5:10 PM, Nathaniel Price <[EMAIL PROTECTED]>wrote: > > > > > I'd like to extend the Auth component in such a way as to be able to > > use LDAP to log users in; basically, my approach would be to > > authenticate the user via LDAP, then, if the user is val

Re: Auth component question on CAKE 1.2

2008-10-24 Thread Dardo Sordi Bogado
Make sure the action can be reached by the user (is allowed/public), then in the action call $this->Auth->login($data); HTH, - Dardo Sordi On Fri, Oct 24, 2008 at 6:20 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > I have a question about the Auth componen

Re: Extending built-in Auth Component?

2008-10-24 Thread Penfold
to extend the Auth component in such a way as to be able to > use LDAP to log users in; basically, my approach would be to > authenticate the user via LDAP, then, if the user is valid and > properly authenticated, it would put them into the user database that > Auth uses and would hand

Auth component question on CAKE 1.2

2008-10-24 Thread [EMAIL PROTECTED]
Hi I have a question about the Auth component in CKAE 1.2 In my application I have a method to authenticate users that is NOT based on username and password. I would use the same the Auth component to do this. Can someone tell me how can I do this? Many Thanks

Re: Extending built-in Auth Component?

2008-10-23 Thread Jay Reeder
Nathaniel, We're doing something similar. Try: class LdapAuthComponent extends AuthComponent On Thu, Oct 23, 2008 at 5:10 PM, Nathaniel Price <[EMAIL PROTECTED]>wrote: > > I'd like to extend the Auth component in such a way as to be able to > use LDAP to log users i

Extending built-in Auth Component?

2008-10-23 Thread Nathaniel Price
I'd like to extend the Auth component in such a way as to be able to use LDAP to log users in; basically, my approach would be to authenticate the user via LDAP, then, if the user is valid and properly authenticated, it would put them into the user database that Auth uses and would hand co

Ajax Login using Jquery and Auth component

2008-10-07 Thread bookme
Hi, I am new to cakephp. I have no idea how to use ajax login using Jquery and Auth. It would be great for me if anybody tell me any tutorial or steps to do this. Thanks a lot you!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Auth component and ajax forms

2008-10-03 Thread CG
Did you check this var at the auth component? /** * The name of an optional view element to render when an Ajax request is made * with an invalid or expired session * * @var string * @access public */ var $ajaxLogin = null; Never tried it, but i guess is something meant to do what

Auth component and ajax forms

2008-10-02 Thread RobertoSDN
Hello, i am using ajax forms and i have a problem with the Auth component that works fine with the login action but not with others actions because only the login action has the bahavior to render a element to handle errors like bellow: if ($loginAction == $url) { ...code } else { if

Re: Simple question about Auth Component

2008-09-29 Thread Jérémy
thank you, it works. On Sep 29, 6:47 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > Hi Jérémy, > > > I am very new with CakePHP and I am trying to set up an authentication > > system using the Auth component provided. > > > How can I show the logged user'

Re: Simple question about Auth Component

2008-09-29 Thread Daniel Hofstetter
Hi Jérémy, > I am very new with CakePHP and I am trying to set up an authentication > system using the Auth component provided. > > How can I show the logged user's name on a view ? Let's say the user > John logged in successfully, I would like to put something like

Simple question about Auth Component

2008-09-29 Thread Jérémy
Hi, I am very new with CakePHP and I am trying to set up an authentication system using the Auth component provided. How can I show the logged user's name on a view ? Let's say the user John logged in successfully, I would like to put something like "Logout [John]" in the def

Re: Change Auth component will solve hash without salt?

2008-09-29 Thread michael h
t;controller->Auth- >fields['password']] = $this->password($data[$this->controller->Auth- >userModel][$this->controller->Auth->fields['password']]); } } } function password($password) { return Security::hash($passw

Re: Change Auth component will solve hash without salt?

2008-09-29 Thread michael h
'password' => 'password' ); $this->Auth->authorize = $this->ScupAuth; $this->Auth->loginAction = array('controller' => 'people', 'action' => 'login&#

Re: Auth component - enforcing password strength and password confirmation entry

2008-09-26 Thread Christian Leskowsky
For 1) I'm not sure if we should be doing that either but I know I'm doing it for the same reason you are... :-) - Original Message - From: "BeanDog" <[EMAIL PROTECTED]> To: "CakePHP" Sent: Thursday, September 25, 2008 7:33 PM Subject: Auth compone

Auth component - enforcing password strength and password confirmation entry

2008-09-26 Thread BeanDog
I've figured out a pretty clean way to make a user registration form that validates a password confirmation and password strength, without extending the Auth component or any other trickery. I wanted some feedback. First, should I be using value=>'' on the password and passw

Re: problem in auth component, please help

2008-09-25 Thread [EMAIL PROTECTED]
Yes, when referring to them as urls they should be lowercase as shown here: http://book.cakephp.org/view/391/loginAction It may be confusing at first but it will soon become second nature. /Martin On Sep 25, 1:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > thanks martin. > > but when i

Re: problem in auth component, please help

2008-09-25 Thread [EMAIL PROTECTED]
thanks martin. but when i changed controller name from Patients to patients and Doctors to doctors, it works. do i always need to name controller in lowercase? thanks. On Sep 25, 1:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > One thing I notice in your code is that you allow "login"

Re: problem in auth component, please help

2008-09-25 Thread [EMAIL PROTECTED]
One thing I notice in your code is that you allow "login". Skip that. Auth will allow access to the login-action by itself and this will create a conflict. On Sep 23, 9:52 pm, "Golam Kibria" <[EMAIL PROTECTED]> wrote: > hello i have tried authcomponent but i dont know why it is not working for

Re: problem in auth component, please help

2008-09-24 Thread nachopitt
I know that AppController::beforeFiler() is a better place to put the Auth Component configuration to share the same configuration between all controllers and have all protected by Auth. On Sep 23, 2:52 pm, "Golam Kibria" <[EMAIL PROTECTED]> wrote: > hello i have tried authc

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
$this->Auth->login unfortunately doesn't use "email" as one of it's fields in logging in. it instead uses "username" and "password" as its default fields. You can see it at the implementation of the login function of Auth. http://api.cakephp.org/1.2/auth_8php-source.html#l00568 it uses $this->i

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread Edi
I am also having this problem. I can't make it login. Tried several versions, with both passwords (hashed, no hashed), but nothing. Currently i have this: $this->Auth->login(array('User'=>array('email'=>$this->data['User'] ['email'], 'password'=>$this->data['User']['password2']))) but it is not

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
Hello Fran, I got it now working. Thanks for the big help! Actually, $this->Auth->login($this->data); // login user is already correct. I just missed to call the line to redirect the user to the designated page. Now it looks like this: if ($this->User->save($this->data)) { $login = $t

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread Fran Iglesias
El 24/09/2008, a las 9:31, mario escribió: > So in this case, > $this->Auth->login($this->data); // login user I think you have the plain version of the password in password2 field. You could do some like: if ($this->User->save($this->data)) { $this->data['User']['password'] = $this

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
Yup. I see the point. So in this case, $this->Auth->login($this->data); // login user I'm trying to pass the data from my form to be used for login. As what I know, cakephp automatically hashes the password field of the model 'user'. So using $this->data in $this->Auth->login() might have some p

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread Fran Iglesias
El 24/09/2008, a las 9:02, mario escribió: > This time, it failed to login the user. It seems like there is some > problem in terms of hashing my password. Not sure, but you may try to login the User, with the non-hashed password. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~--

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread mario
is some problem in terms of hashing my password. Did I missed something here? On Sep 24, 2:31 pm, Fran Iglesias <[EMAIL PROTECTED]> wrote: > El 24/09/2008, a las 7:28, mario escribió: > > > Do anyone of you have an idea on how to automatically login > > after signing-up usin

Re: Automatic Login after Signup using Auth Component

2008-09-23 Thread Fran Iglesias
El 24/09/2008, a las 7:28, mario escribió: > Do anyone of you have an idea on how to automatically login > after signing-up using Auth Component? This seems a task for $this->Auth->login() http://api.cakephp.org/1.2/class_auth_component.html#5c2562e36d1fb6f8b93a15fb23604a

Re: Automatic Login after Signup using Auth Component

2008-09-23 Thread mario
24, 1:39 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > 2008/9/24 mario <[EMAIL PROTECTED]> > > > > > Hello everyone, > > > Do anyone of you have an idea on how to automatically login > > after signing-up using Auth Component? > > >

Re: Automatic Login after Signup using Auth Component

2008-09-23 Thread Amit Badkas
2008/9/24 mario <[EMAIL PROTECTED]> > > Hello everyone, > > Do anyone of you have an idea on how to automatically login > after signing-up using Auth Component? > > I have tried like: > > $this->User->create(); > if ($this->User->save($this->da

Automatic Login after Signup using Auth Component

2008-09-23 Thread mario
Hello everyone, Do anyone of you have an idea on how to automatically login after signing-up using Auth Component? I have tried like: $this->User->create(); if ($this->User->save($this->data)) { $this->Auth->Session->write($this->Auth->sessionKey,

problem in auth component, please help

2008-09-23 Thread Golam Kibria
hello i have tried authcomponent but i dont know why it is not working for me. i have two controller Doctors and Patients. Login methods are in Doctors controller. After hit the login form, the login form reappears with no flash/auth message. Doctors Controller code var $name = 'Doctors'; va

Re: Auth component not working for me

2008-09-19 Thread gabriel
$this->Auth->allow('display','index','register'); you don't have a 'display' funtion in your controller..don't know much maybe this is it. On 15 Sep, 06:51, "Golam Kibria" <[EMAIL PROTECTED]> wrote: > hello i have triedauthcomponent and is not working for me. > > here is my code > > class Use

Re: Change Auth component will solve hash without salt?

2008-09-11 Thread yodi
work. Salt? i don't think so. >> >> Cookies needed for " remember me " on login form. >> I need security.salt to hash them and I don't put user password on >> cookies. >> >> I think someone has same problem with me. >> Just in some c

<    1   2   3   4   5   6   7   8   9   >