Auth component with Logins model

2016-02-29 Thread Abdelmajid el Ibrahimi
Hello, I have made a Logins table separate from the Users table. I have changed 'authenticate' => [ 'Basic' => [ 'userModel' => 'Logins' ], ] It works the only problem i have is that the session doesnt get destroyed. I have destroy

Re: Auth Component works in dev, but not in production

2016-02-02 Thread Christian Quispe
getting a blank page when I try and use the Auth Component. > > The code is straight out of the blog tutorial. > > > http://book.cakephp.org/3.0/en/tutorials-and-examples/blog-auth-example/auth.html > > It works in dev, but I get a blank page in production. > > Any ideas any

Auth Component works in dev, but not in production

2016-01-29 Thread Ricardo Escalon
I am getting a blank page when I try and use the Auth Component. The code is straight out of the blog tutorial. http://book.cakephp.org/3.0/en/tutorials-and-examples/blog-auth-example/auth.html It works in dev, but I get a blank page in production. Any ideas anyone? -- Like Us on FaceBook

Auth Component Logout renews Session

2015-06-09 Thread Piyuesh Makkar
public function logout() { - $this->Session->renew(); } See Above code at AuthComponent::logout, my question is why it renews the session on logout. Problem Case: When user open a page with Auth login/logout in incognito browser window. Th

Re: Mock auth component in controller test using testAction

2015-04-08 Thread José Lorenzo
Is _apiLoginRequest() a static method? On Tuesday, April 7, 2015 at 1:06:15 PM UTC+2, Sebastian Bergquist wrote: > > Hi! I’m having some problems with my tests. I can’t seem to mock the auth > component in a controller test using the testAction method… Here are the > part of t

Mock auth component in controller test using testAction

2015-04-07 Thread Sebastian Bergquist
Hi! I’m having some problems with my tests. I can’t seem to mock the auth component in a controller test using the testAction method… Here are the part of the test that causes the problem: https://gist.github.com/beez/6f9ee89538d1a6be6dfb Any help or pointers on how to solve this is greatly

logout a specific user using the Auth Component

2014-07-20 Thread Saif Turki
Hi, Sorry for my bad english :( I want to logout a specific user (not the logged one) using the cakephp Auth Component but the logout method doesn't accept any param !! is there any alternative way to specify the ID of the user that we want to logout ? thanks -- Like Us on FaceBook

RE: Auth Component

2014-06-27 Thread Saran
Hi Matt, You can check array $user['User'], there is company and person found? After that we will check more. Regards Saran -Original Message- From: "Matt Myers" Sent: ‎27-‎06-‎2014 12:46 PM To: "cake-php@googlegroups.com" Subject: Auth Component

Re: Auth Component

2014-06-27 Thread Jeremy Burns : Class Outfit
What happens if, when you define $user, you also include (contain?) the Person and Company models and log in with that $user variable? On 27 Jun 2014, at 00:57, Matt Myers wrote: > I've been hitting my head over this for quite some time now. When I login > using the Auth Compon

Auth Component

2014-06-27 Thread Matt Myers
I've been hitting my head over this for quite some time now. When I login using the Auth Component as such: $this->Auth->login() It will login just fine and define the following authUser: User User.Person User.Company But when I login in another situation like so: $this->Aut

Re: Help! Auth Component in Lib directory

2014-02-25 Thread Ben Kennedy
Can't edit my first post, so just be aware that this line: $result = $Auth->identify($userArr,$resp); should be : $result = $Auth->identify($userObj,$resp); And I'm using Cake 2.4.4 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Help! Auth Component in Lib directory

2014-02-25 Thread Ben Kennedy
er.php app/Lib/WebServices/SomeService.php The controller loads the requested service and passes it as an argument to the Zend SOAP server code. It works fine, except where I need the response from the Auth Component. I want a partner site to be able to validate a username/password as part of

Auth component problem.

2013-10-24 Thread thanat
Hello there, i have an issue with Auth.redirect value. on my local machine when i do in my view: debug($this->Session->read('Auth.redirect')); result is: 'users/register.html' the same app on remote server gives me this output. 'users/register.html?url=users%2Fregister.html' why is the ?u

Re: Using Auth component with two different models

2013-04-24 Thread Irvin Huang
s > respectively. > > > > 2013/4/23 Alex Bovey > >> On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey wrote: >> > Hi all, >> > >> > What's the best technique to use if I have two separate areas of my >> site and >> > I want the A

Re: Using Auth component with two different models

2013-04-24 Thread Irvin Huang
x27;s the best technique to use if I have two separate areas of my site > and > > I want the Auth component to use two separate models to log in to those > > areas? > > > > I have tried setting the $this->Auth->authenticate['Form']['userModel'] > f

Re: Using Auth component with two different models

2013-04-24 Thread Alex Bovey
On Tue, Apr 23, 2013 at 7:26 PM, André Luis wrote: > > I suggest to use a single model and separate the users using groups... Thanks André - best plan I think. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message b

Re: Using Auth component with two different models

2013-04-23 Thread André Luis
I suggest to use a single model and separate the users using groups... Em sexta-feira, 19 de abril de 2013 12h39min38s UTC-3, Alex Bovey escreveu: > > Hi all, > > What's the best technique to use if I have two separate areas of my site > and I want the Auth component to use

Re: Using Auth component with two different models

2013-04-23 Thread Alex Bovey
On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey wrote: > Hi all, > > What's the best technique to use if I have two separate areas of my site and > I want the Auth component to use two separate models to log in to those > areas? > > I have tried setting the $this

Using Auth component with two different models

2013-04-19 Thread Alex Bovey
Hi all, What's the best technique to use if I have two separate areas of my site and I want the Auth component to use two separate models to log in to those areas? I have tried setting the $this->Auth->authenticate['Form']['userModel'] from the controller but that

Re: Auth Component Issues

2013-04-02 Thread André Luis
d() at model´s beforeSave to save the correct password on table... Em segunda-feira, 1 de abril de 2013 16h55min32s UTC-3, Ramon José Silva escreveu: > > Hi guys. > > Well, I trying to use the CakePHP on my own project, but I have a problem > with the Auth Component. > > I&#x

Re: Auth Component Issues

2013-04-02 Thread Vinicius Dusso
Ramon, Which CakePHP's version are you using? On Monday, April 1, 2013 4:55:32 PM UTC-3, Ramon José Silva wrote: > > Hi guys. > > Well, I trying to use the CakePHP on my own project, but I have a problem > with the Auth Component. > > I'm not using the pass

Auth Component Issues

2013-04-01 Thread Ramon José Silva
Hi guys. Well, I trying to use the CakePHP on my own project, but I have a problem with the Auth Component. I'm not using the password hash yet and not using the UsersController and User Model, but I using Admin Model, AdminController and an Ajax, passing the form data to the controller

Re: Auth Component; Strange behavior

2013-03-11 Thread CrotchFrog
Pablito was correct, there was a conflict in my code. I had a custom helper to handle ckeditor and it was causing the conflict. On Monday, March 11, 2013 7:56:19 PM UTC-4, cricket wrote: > Define "Auth Component does not work". If Auth is allowing access then > what else do

Re: Auth Component; Strange behavior

2013-03-11 Thread lowpass
Define "Auth Component does not work". If Auth is allowing access then what else do you need? Could this be a routing issue? Are you using admin prefixes? (It's been a long day so I may well be missing something obvious here.) On Mon, Mar 11, 2013 at 5:15 AM, Ed Propsner wrot

Re: Auth Component; Strange behavior

2013-03-11 Thread Pablito Pablito
Still learning Cake but maybe you have some code conflicting with auth on your AppController beforeFilter? Happened to me when trying out the Auth component. Pablo. On Monday, March 11, 2013 6:15:02 AM UTC-3, CrotchFrog wrote: > > Using Cake 2.2.5 > > My app is exhibiting a stra

Auth Component; Strange behavior

2013-03-11 Thread Ed Propsner
Using Cake 2.2.5 My app is exhibiting a strange behavior in one of my controller/views. I have $this->Auth->allowedActions = array('view', 'index'); defined in the beforeFilter of one of my controllers. When an authenticated user navigates to the index view, Auth Compo

Re: Auth component deleting Session data for no reason.

2013-01-08 Thread Pedro Fortes Gallego
Hello cricket, its solved and fixed all above. Could you add me to gmail-chat? fortesgall...@gmail.com. Thanks you. El domingo, 6 de enero de 2013 23:32:35 UTC+1, cricket escribió: > > On Sat, Jan 5, 2013 at 3:08 PM, Pedro Fortes Gallego > > wrote: > > > > Is there any form to catch php fatal

Re: Auth component deleting Session data for no reason.

2013-01-06 Thread lowpass
On Sat, Jan 5, 2013 at 3:08 PM, Pedro Fortes Gallego wrote: > > Is there any form to catch php fatal errors? Have a look at register_shutdown_function() > i heard that if you left a blank space after ?> tag, it can causes a fatal > error. More likely it will cause the dreaded "Headers already

Re: Auth component deleting Session data for no reason.

2013-01-05 Thread Pedro Fortes Gallego
El viernes, 4 de enero de 2013 03:50:30 UTC+1, cricket escribió: > > On Thu, Jan 3, 2013 at 6:02 AM, Pedro Fortes Gallego > > wrote: > > Hello, > > > > Im using auth component and cofiguring it in my AppController, just cake > > documentain say. > >

Re: Auth component deleting Session data for no reason.

2013-01-03 Thread lowpass
On Thu, Jan 3, 2013 at 6:02 AM, Pedro Fortes Gallego wrote: > Hello, > > Im using auth component and cofiguring it in my AppController, just cake > documentain say. > > class AppController extends Controller { > > ... > public function beforeFilter() { >

Auth component deleting Session data for no reason.

2013-01-03 Thread Pedro Fortes Gallego
Hello, Im using auth component and cofiguring it in my AppController, just cake documentain say. *class AppController extends Controller { public $components = array( 'Session', 'Auth' => array( 'loginRedirect' =>

Re: Auth component doesn't set session variables !

2012-11-10 Thread SPH92
d it works from my > home computers. > It doesn't from my work, maybe because of proxy setting but it's weird. > > On Thu, Mar 31, 2011 at 8:42 PM, cricket > > wrote: > >> On Thu, Mar 31, 2011 at 10:43 AM, damien d >> > >> wrote: >> &g

CakePHP, Opauth and Auth component

2012-10-20 Thread ivnrmc
Hello there, I have a question regarding Opauth and Cakephp. I am just starting new project and I decided to go with Opauth and few Strategies to develop login system. But, I have a problem, I cannot login user with Auth component from CakePHP. It works nice, I get array of data from social

Re: Social Networking Login with Auth Component.

2012-08-13 Thread Sanjeev Divekar
I will stick to CakePHP's basic Auth component. On Mon, Aug 13, 2012 at 6:05 PM, Chetan Varshney wrote: > Hi Sanjeev, > > Please have a look on http://umpremium.ektasoftwares.com for > authenticating users and other features. > > > On Mon, Aug 13, 2012 at 6:03 PM

Re: Social Networking Login with Auth Component.

2012-08-13 Thread Chetan Varshney
Hi Sanjeev, Please have a look on http://umpremium.ektasoftwares.com for authenticating users and other features. On Mon, Aug 13, 2012 at 6:03 PM, Sanjeev Divekar wrote: > HybridAuth gives more profile data then Opauth. I could't find user's > email from demo in Opauth. > > On Mon, Aug 13, 2012

Re: Social Networking Login with Auth Component.

2012-08-13 Thread Sanjeev Divekar
HybridAuth gives more profile data then Opauth. I could't find user's email from demo in Opauth. On Mon, Aug 13, 2012 at 6:00 PM, Braindead wrote: > I think HybridAuth is better in response data provided. >> > > The only difference I can see is that HybridAuth does automatically login > using Au

Re: Social Networking Login with Auth Component.

2012-08-13 Thread Braindead
> > I think HybridAuth is better in response data provided. > The only difference I can see is that HybridAuth does automatically login using AuthComponent and Opauth does not. But actually this can be done in a few lines of code. Opauth has the advantage that it is a nice plugin that fits nic

Re: Social Networking Login with Auth Component.

2012-08-13 Thread Sanjeev Divekar
I think HybridAuth is better in response data provided. Any other suggestion? On Mon, Aug 13, 2012 at 2:21 PM, Braindead wrote: > Have a look at Opauth. It's a nice plugin working really well. > > https://github.com/uzyn/cakephp-opauth > > -- > You received this message because you are subscribe

Re: Social Networking Login with Auth Component.

2012-08-13 Thread Braindead
Have a look at Opauth. It's a nice plugin working really well. https://github.com/uzyn/cakephp-opauth -- 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, se

Social Networking Login with Auth Component.

2012-08-12 Thread Sanjeev Divekar
Hello, While googling I found hybridauth as social networking login library. Any better or similar suggestion? Regards, -- 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

Re: Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dr. Tarique Sani
gt; >> After upgrading to 2.2.1 from 2.0.x some of my controller tests are >> failing. >> It seems as if a mocked Auth component does not survive multiple >> testAction calls. Am I doing something wrong here or is this expected? >> >> CandidatesControllerTes

Re: Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
I've discovered this doesn't happen when i am logged in to the app itself. I am quite confused. On Monday, July 23, 2012 10:58:34 AM UTC-4, Dave M. wrote: > > After upgrading to 2.2.1 from 2.0.x some of my controller tests are > failing. > It seems as if a mocked Auth comp

Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
After upgrading to 2.2.1 from 2.0.x some of my controller tests are failing. It seems as if a mocked Auth component does not survive multiple testAction calls. Am I doing something wrong here or is this expected? CandidatesControllerTest.php public function testExportAdmin() { $Candidates

Re: Bad Redirect with auth component.

2012-07-11 Thread mohit kumar
thats silly of me :( On Thu, Jul 12, 2012 at 2:01 AM, Tilen Majerle wrote: > 'loginRedirect'=> array('controller'=>'users','controller'=>'edit' ), > 'logoutRedirect'=> array('controller'=>'users','controller'=>'logout' ) > > you have twice 'controller' > > listen what lowpass said :) > -- > Lep p

Re: Bad Redirect with auth component.

2012-07-11 Thread Tilen Majerle
'loginRedirect'=> array('controller'=>'users','controller'=>'edit' ), 'logoutRedirect'=> array('controller'=>'users','controller'=>'logout' ) you have twice 'controller' listen what lowpass said :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/11 lowpass > 'action' => 'edit' > 'acti

Re: Bad Redirect with auth component.

2012-07-11 Thread lowpass
'action' => 'edit' 'action' => 'index' ;-p On Wed, Jul 11, 2012 at 3:02 PM, mohit kumar wrote: > Hi Folks, > > Please help > > I have this code in my AppController > > > public $components = array('Session','Auth'=> array( > > //Error to display when user attempts to access an object or action t

Bad Redirect with auth component.

2012-07-11 Thread mohit kumar
Hi Folks, Please help I have this code in my AppController public $components = array('Session','Auth'=> array( //Error to display when user attempts to access an object or action to which they do not have access. 'authError' => 'You need to login to access the page', 'authorize' => array('con

Re: User Info from Auth Component

2012-06-20 Thread Борислав Събев
); >>> and debug($this->Auth->User()) with data from the form. Otherwise the >>> password would be hashed. It has nowhere else to get an unhashed password >>> from. This seems like a pretty poor choice for default behavior. I would >>> prefer that m

Re: User Info from Auth Component

2012-06-20 Thread Max Dörfler
and debug($this->Auth->User()); both return: array( 'User' => array( 'password' => '*', 'email' => 't...@example.com <mailto:t...@example.com>' )

Re: User Info from Auth Component

2012-06-20 Thread Joey Hauschildt
x27;t store passwords from the form anywhere. >> >> On Tuesday, June 19, 2012 2:50:45 PM UTC-6, Jeremy Burns wrote: >>> >>> You should be hashing the password before saving it. >>> >>> Jeremy Burns >>> Class Outfit >>> >>

Re: User Info from Auth Component

2012-06-20 Thread Борислав Събев
gt; '*', >> 'email' => 't...@example.com' >> ) >> ) >> >> These are the fields that the user uses to log in. The password isn't >> even hashed. When I print_r, it displays the actual password. I would like >> to

Re: User Info from Auth Component

2012-06-19 Thread Max Dörfler
' => 't...@example.com <mailto:t...@example.com>' ) ) These are the fields that the user uses to log in. The password isn't even hashed. When I print_r, it displays the actual password. I would like to have access to other user info like an ID or

Re: User Info from Auth Component

2012-06-19 Thread Joey Hauschildt
> > array( > 'User' => array( > 'password' => '*', > 'email' => 't...@example.com' > ) > ) > > These are the fields that the user uses to log in. The password isn't even > hashed. When I print_r, it displays th

Re: User Info from Auth Component

2012-06-19 Thread Jeremy Burns | Class Outfit
hed. When I print_r, it displays the actual password. I would like to have > access to other user info like an ID or role. Do I need to use my own query > to get this info or should the Auth Component be grabbing that stuff for me?. > > -- > Our newest site for the community: Ca

User Info from Auth Component

2012-06-19 Thread Joey Hauschildt
o log in. The password isn't even hashed. When I print_r, it displays the actual password. I would like to have access to other user info like an ID or role. Do I need to use my own query to get this info or should the Auth Component be grabbing that stuff for me?. -- Our newest site for th

Re: cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-19 Thread Miloš Vučinić
You can make a sql qury which will delete all from given range.. I think it would be best for performances as well On May 19, 4:55 am, Jimit Kapadya wrote: > Hello All, > > how to delete Multiple tables fields values in cakephp 2.0 -- Our newest site for the community: CakePHP Video Tutorials

Re: cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-19 Thread Jimit Kapadya
Hello All, how to delete Multiple tables fields values in cakephp 2.0 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from

Re: cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-18 Thread Miloš Vučinić
: in local host , it worked 0.O second thing is, ACL->Allow worked when you make all allowed but doesn't when you need to check if someone is logged in. This behaviour is super strange, because only AUTH component had the problem with my controller. If it was allowed it worked .. Anywyas

cake 2.x auth component bugs with pages controller after changing htaccess files

2012-05-18 Thread Miloš Vučinić
Hi, this is really strange question. I made a simple web presentation (so far I have used cake 1.3 this is my first 2.x project), and added AUTH component looking at the tutorial from this link : http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl

Re: Can't call Auth component from controller

2012-05-16 Thread bs28723
he $components array. If you're extending that component you need to load 'OrgAuthorize'. On Sun, May 13, 2012 at 5:51 PM, bs28723 < [hidden email] > wrote: > I wrote an Auth Component. It gets a b

Re: Can't call Auth component from controller

2012-05-16 Thread lowpass
You're loading Cake's Auth in the $components array. If you're extending that component you need to load 'OrgAuthorize'. On Sun, May 13, 2012 at 5:51 PM, bs28723 wrote: > I wrote an Auth Component. It gets a bunch of permission information about > the curr

Can't call Auth component from controller

2012-05-13 Thread bs28723
I wrote an Auth Component. It gets a bunch of permission information about the current user. How can I pass this information back to the controller? In AppContoller.php     public $components = array(     'Auth'

Re: Auth component in requestAction

2012-04-19 Thread lowpass
You allow actions in the controller, not views or elements. On Thu, Apr 19, 2012 at 8:32 AM, Jackson Bicalho wrote: > I have one element in a view using requestAction. > > This view is permitted in Auth, but is blocked because it is call > requestAction can not afford it. > > Does anyone know how

Re: Auth component WITHOUT ACL blocks every controller action

2012-04-19 Thread jeremyharris
rollerauthorize > > > On Tuesday, April 17, 2012 2:45:56 PM UTC-7, DigitalDude wrote: >> >> Hey, >> >> hmmmm as I changed the code to the snippet of stork, it gave me a "... >> function isAuthorized() on a non-object (auth-component line 52). >&

Auth component in requestAction

2012-04-19 Thread Jackson Bicalho
I have one element in a view using requestAction. This view is permitted in Auth, but is blocked because it is call requestAction can not afford it. Does anyone know how to reach her ​​at Auth. EX: $ this-> Auth-> allow ('element / bláblábláblá') thank you Translated by Google (en | en) --

Re: Auth component WITHOUT ACL blocks every controller action

2012-04-17 Thread luca capra
of stork, it gave me a "... function isAuthorized() on a non-object (auth-component line 52). When I added the code of luca capra, everything is working as expected. All actions that are not allowed by $this->Auth->allow() within beforeFilter-functions of my controllers are blocked when

Re: Auth component WITHOUT ACL blocks every controller action

2012-04-17 Thread jeremyharris
rauthorize On Tuesday, April 17, 2012 2:45:56 PM UTC-7, DigitalDude wrote: > > Hey, > > h as I changed the code to the snippet of stork, it gave me a "... > function isAuthorized() on a non-object (auth-component line 52). > > When I added the code of luca capra,

Re: Auth component WITHOUT ACL blocks every controller action

2012-04-17 Thread DigitalDude
Hey, h as I changed the code to the snippet of stork, it gave me a "... function isAuthorized() on a non-object (auth-component line 52). When I added the code of luca capra, everything is working as expected. All actions that are not allowed by $this->Auth->allow() within b

Re: Auth component WITHOUT ACL blocks every controller action

2012-04-17 Thread stork
> $this->Auth->authorize = 'controllers'; > $this->Auth->authorize = array('Controller'); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questio

Re: Auth component WITHOUT ACL blocks every controller action

2012-04-17 Thread luca capra
Il 17/04/2012 15:13, DigitalDude ha scritto: Hey, I have a little problem with the Auth component. Normally I use it together with ACL, everything works finde. Now I have a really small Project and I just want to have some authentication without ACL tables or different roles. ... What am I

Auth component WITHOUT ACL blocks every controller action

2012-04-17 Thread DigitalDude
Hey, I have a little problem with the Auth component. Normally I use it together with ACL, everything works finde. Now I have a really small Project and I just want to have some authentication without ACL tables or different roles. The basic setup is like the following: AppController

Re: Auth Component CakePHP 2.0

2012-02-13 Thread Alexandre Leprêtre
It actually worked with 'fields'. thanks for your help :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group,

Re: Auth Component CakePHP 2.0

2012-02-13 Thread Alexandre Leprêtre
Hi Ahmed, thanks a lot for your help. My array looks like this now, but it doesn't work better. public $components = array( 'Acl', 'Auth' => array( 'authorize' => array( 'Actions' => array('actionPath'

Re: Auth Component CakePHP 2.0

2012-02-11 Thread Ahmed garhy
one more correction, it's authenticate not authentificate. good luck -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from t

Re: Auth Component CakePHP 2.0

2012-02-11 Thread Ahmed garhy
Hello, you may try to "Fields" variable in Auth array. instead of : 'authentificate' => array( 'Form' => array( 'username' => 'email_address', 'password' => 'password'

Auth Component CakePHP 2.0

2012-02-10 Thread Alexandre Leprêtre
Hi everyone, I started to learn CakePHP recently and followed the ACL tutorial step by step, trying to understand every single piece of it. Sadly, I couldn't achieve it correctly since my app doesn't work. Indeed, I can't log in. Every time, it says that my user name or password is incorrect (whil

Re: Cakephp 2.0.5 Auth component problem.

2012-01-22 Thread José Lorenzo
Most probably you have trailing whitespace before of after the php tags in your classes. Use the DebugKit whitespace shell to remove them. You may also want to change the session settings in core.php, usually setting 'checkAgent' => false solves some issues. -- Our newest site for the communit

Cakephp 2.0.5 Auth component problem.

2012-01-17 Thread xparm...@yahoo.com
I made a basic login, authorization script with cakephp 2.0.5 using Auth component. When I use Firefox to test the aplication everithing works fine both on windows WAMP and on a virtualbox lamp (ubuntu). However when I try to test the aplication with google chrome or Internet explorer it works

Re: Auth Component problem

2012-01-12 Thread Glauco Custódio
> > 2012/1/11 Glauco Custódio > > > > > > > > > Hi there, I am migrating my base app from 1.3x to 2.0.5. I have copied > > a lot of my code and I am changing where is necessary... > > > Auth component is configured, but it is allowing any username/pas

Re: Auth Component problem

2012-01-11 Thread Tilen Majerle
de and I am changing where is necessary... > > Auth component is configured, but it is allowing any username/password > to log in and message of invalid username is not appearing. > > Link to my code: http://bin.cakephp.org/view/416619310 > > Please help me, thank you. >

Auth Component problem

2012-01-11 Thread Glauco Custódio
Hi there, I am migrating my base app from 1.3x to 2.0.5. I have copied a lot of my code and I am changing where is necessary... Auth component is configured, but it is allowing any username/password to log in and message of invalid username is not appearing. Link to my code: http

Re: Auth component troubles

2011-12-27 Thread Clint
Thanks for your suggestions Luca. After looking at my code again this morning, I discovered my mistake. Somehow I'd given App_Controller a ctp extension.. doh! Explains why it wasn't being read. Clint Hi, I think there is nothing wrong in your code, but probably your missing something lik

Re: Auth component troubles

2011-12-27 Thread luca capra
Hi, I think there is nothing wrong in your code, but probably your missing something like public function login(){ if ($this->Auth->login()) { $this->redirect($this->Auth->redirect()); } else { $this->Session->setFlash(__('Invalid username or passwor

Auth component troubles

2011-12-26 Thread Clint
I'm having troubles with the Auth component using CakePHP 1.3 I expected the following to work: Auth->fields = array( 'username' => 'email', 'password' => 'password' ); $this->Auth->logi

Re: Remember Me with Cookie and Auth Component

2011-11-29 Thread Jordy van Kuijk
Hi Miles, I cannot get the component to work, so I switched back to my own cookie login method. I can successfully login the user with the cookie, however, I only have the email address and password available. Is there anyway that i can initialize the user after he logged in? When i debug $thi

Re: Auth component not returning user data on manual login (CakePHP 2.0.3)

2011-11-28 Thread Pratz_
Ah, that did the trick. Thanks! On Nov 28, 12:43 pm, elitalon wrote: > According to documentation (http://api20.cakephp.org/class/auth- > component#method-AuthComponentlogin) if you login a user with a custom > array, only the information in that array is populated in > AuthCompone

Re: Auth component not returning user data on manual login (CakePHP 2.0.3)

2011-11-27 Thread elitalon
According to documentation (http://api20.cakephp.org/class/auth- component#method-AuthComponentlogin) if you login a user with a custom array, only the information in that array is populated in AuthComponent. Thus, if you want to retrieve the ID you must ensure that the ID is present in `$data

Re: Auth component not returning user data on manual login (CakePHP 2.0.3)

2011-11-27 Thread Pratz_
I tried doing: $this->Auth->login($data['User']); It too successfully logins the user, but the user data is still not accessible via Auth component. $this->Auth->user('id') still returns NULL. On Nov 25, 12:01 pm, elitalon wrote: > If `$data` is an array buil

Re: ACL group based permission + Auth Component

2011-11-26 Thread sixthpoint
originally leaned towards ACL after first reading the cookbook. But I am noticing now it may be better to simply build in the permissions into the auth component using isAuthorized(). This I imagine would increase speed and performance on my site. On Nov 24, 9:19 am, José Lorenzo wrote: > It is possi

Re: Auth component not returning user data on manual login (CakePHP 2.0.3)

2011-11-24 Thread elitalon
I have been trying to manually login a user in version 2.0.3 using: > $this->Auth->login($data). > > Though it successfully logins the user, and can read user data through > $this->Session->read('Auth.User.id'), the Auth Component does not > return the user data.

Auth component not returning user data on manual login (CakePHP 2.0.3)

2011-11-24 Thread Pratz_
Hi, I have been trying to manually login a user in version 2.0.3 using: $this->Auth->login($data). Though it successfully logins the user, and can read user data through $this->Session->read('Auth.User.id'), the Auth Component does not return the user data. $this->Auth

Re: ACL group based permission + Auth Component

2011-11-24 Thread José Lorenzo
It is possible via creating a custom Authorization object, those objects act as plugins for the AuthComponent so you would not need any changes in the usual way you work with Auth. The main question is, do you really need ACL? I've seen lots of people wondering about ACL and after a short talk

ACL group based permission + Auth Component

2011-11-23 Thread sixthpoint
Can you use the ACL group based permission and the Auth Component with controller based permissions at the same time? Or were they meant to be used separately? And if you can use them together, which takes precedence in the order of operations? -- Our newest site for the community: CakePHP Video

Re: Remember Me with Cookie and Auth Component

2011-11-22 Thread Miles J
Here you are: https://github.com/milesj/cake-auto_login On Nov 22, 10:23 am, Jordy van Kuijk wrote: > Hi all, > > I'm trying to add a "remember me" checkbox into my login form. > When users check the box, they log in and a cookie ('Auth.User') is > stored, with 'email' and 'password' fields (this

Remember Me with Cookie and Auth Component

2011-11-22 Thread Jordy van Kuijk
Hi all, I'm trying to add a "remember me" checkbox into my login form. When users check the box, they log in and a cookie ('Auth.User') is stored, with 'email' and 'password' fields (this works). Now in my AppController, I want to see if users can log back in using their cookie. I have the follow

Re: Cake 2.0 Auth Component login method

2011-11-17 Thread huoxito
AD I came into this issue because Im migrating a 1.3 app to Cake 2.0 . And I did pass args to login method on Cake 1.3, I already liked to manually login the user back then, and it only returned true if the data passed was on the db, just like the warning on the new docs says. Anyway I think I

Re: Cake 2.0 Auth Component login method

2011-11-17 Thread AD7six
On Thursday, 17 November 2011 01:50:09 UTC+1, huoxito wrote: > > So it seems I got a stupid question. Sorry folks sometimes I just cant see > the sutff Im looking for. > > Just read the new Auth doc carefully. I realized that theres authenticate > and authorize configs but I did not realize why

Re: Cake 2.0 Auth Component login method

2011-11-16 Thread huoxito
So it seems I got a stupid question. Sorry folks sometimes I just cant see the sutff Im looking for. Just read the new Auth doc carefully. I realized that theres authenticate and authorize configs but I did not realize why it is ok to authenticate when a user submitts a blank login form or what

Re: Cake 2.0 Auth Component login method

2011-11-16 Thread AD7six
On Wednesday, 16 November 2011 19:29:54 UTC+1, huoxito wrote: > > Hi > > Thats why I asked the question. Because I read the warning on the doc. Did you, you know, read the rest of it? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new C

Re: Cake 2.0 Auth Component login method

2011-11-16 Thread huoxito
Hi Thats why I asked the question. Because I read the warning on the doc. "Warning -> In 2.0 $this->Auth->login($this->request->data) will log the user in with whatever data is posted" -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

  1   2   3   4   5   6   7   8   9   >