Re: Plugin login problem

2014-11-17 Thread Jose
The Form::create() call was done incorrectly, it should be: $this->Form->create('User', array('url' => array('admin' => false, 'plugin' => null, 'controller' => 'users', 'action' => 'login'))); On Thursday, November 6, 2014 5:11:36 AM UTC-5, Lucky1968 wrote: > > Hi, > > I'm using CakePHP 2.3.10

Plugin login problem

2014-11-06 Thread Lucky1968
Hi, I'm using CakePHP 2.3.10 and I have a problem with a login form in my header. When the login form is used from within a plugin view it sends the form to /plugin_name/users/login instead of to /users/login. I have found numerous posts on this topic and all state the same: I need to add *'pl

cakePhp 2.5 Auth login problem

2014-05-21 Thread earth
Hello, I have a table named accounts having fields id, email and passwd. In my AppController.php beforeFilter() function i have this code. $this->Auth->authorize = array('Controllers'); $this->Auth->authenticate = array('all' => array('scope' => array('Account.enabled' => 'Y')), 'Form' => array(

Re: Strange IE11 Login Problem

2014-02-05 Thread Sanjeev Divekar
Solved My Problem. Configure::write('Session', array( 'defaults' => 'php', 'cookieTimeout' => 0, 'cookie' => 'newNameSESSION', )); Is the Solution. http://stackoverflow.com/questions/10256523/cakephp-auth-session-variable-completely-missing-in-chrome-on-some-m

Strange IE11 Login Problem

2014-02-05 Thread Sanjeev Divekar
Hi, My CakePHP App developed in 2.3.6 is working fine in Chrome, Firefox but IE11. I can not login from IE11 from my Desktop. No Auth Message Display. but I can login from my Laptop using IE11. any Idea? Anybody know Security Settings for IE11 Thanks -- Like Us on FaceBook https://www.faceb

Login problem

2013-04-24 Thread lshewolf .
Hi Can anyone tell how to deny login and register actions to already logged in users? or how to redirect those pages to index page? thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subsc

Re: login problem in deployed

2013-04-12 Thread Moawia Almardoud
This action ... Searching for index.HTML, search for it ... On Apr 12, 2013 5:57 PM, "Antonio Flores Lara" wrote: > i have a index() in Usercontroller > > > public function index() { > $this->User->recursive = 0; > $this->set('users', $this->paginate()); > } > > El viernes, 12 de abril de 2013 06

Re: login problem in deployed

2013-04-12 Thread Antonio Flores Lara
i have a index() in Usercontroller public function index() { $this->User->recursive = 0; $this->set('users', $this->paginate()); } El viernes, 12 de abril de 2013 06:48:41 UTC-5, Moawia escribió: > > Try to add function index(){} in UsersController > On Apr 11, 2013 7:42 PM, "Antonio Flores Lar

Re: login problem in deployed

2013-04-12 Thread Moawia Almardoud
Try to add function index(){} in UsersController On Apr 11, 2013 7:42 PM, "Antonio Flores Lara" wrote: > hello ..i am new with cakephp ... i made a web aplication and deployed to > hostgator and the send me this error > > Missing Method in UsersController > > *Error: *The action *index.html* is

Re: Login problem

2012-07-07 Thread tigr
I have a feeling that you are mixing together two concepts. YOu can do the authorization with the standard authorization mechanisms, without isAuthorized(), controlling the access through the normal $this->Auth->Allow() and Deny() functions. You use this: http://book.cakephp.org/2.0/en/core-lib

Re: Login problem

2012-07-06 Thread Paulo Victor
Would you say the problema is with isAuthorized ? I am beggining to think that. Because i always get the same AuthError message, even with no registered users. When i am supposed to get the message in the login funcion " Username or password is incorrect " with such an entry. public function login

Re: Login problem

2012-07-06 Thread Paulo Victor
Thanks :) Well, my beforeFilter in the users controller is public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('add_bolsista','logout'); } So i do use that. I am using the isAutorized based in some tutorials, they alway use it, as long as i found in the web. I

Re: Login problem

2012-07-05 Thread tigr
Ah, I am struggling to implement an authentication/authorization system myself now, so you have my sympathy :) So, your login works fine? Users get logged in? But they are not allowed access? Just out of curiosity why are you using isAuthorized at all? As for the problem at hand, it seems to m

Re: Login problem

2012-07-04 Thread Paulo Victor
Hum, right. I checked and this is the correct. But the problem remains. Aparently i have to keep reading the most recent docs. Must be something like that. 2012/7/4 tigr > Accordsing to documentation, it should be > > array('authorize' => 'Controller'), > > > and not > > 'authorize'=>array('Con

Re: Login problem

2012-07-04 Thread tigr
Accordsing to documentation, it should be array('authorize' => 'Controller'), and not 'authorize'=>array('Controller'), Could this be the problem? On Tuesday, July 3, 2012 5:34:51 PM UTC+2, Paulo Victor wrote: > > I don't know what do do anymore. My login system is up and runnig, but no > ma

Re: Login problem

2012-07-03 Thread Paulo Victor
Yes, in my users controller : public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('add_bolsista','logout'); } Wich is different from my appcontroller beforeFilter: public function beforeFilter() { $this->Auth->allow('index','view'); $this->set('l

Re: Login problem

2012-07-03 Thread lowpass
Are you calling beforeFilter() in your controller? If so, do you also call parent::beforeFilter()? On Tue, Jul 3, 2012 at 6:15 PM, Paulo Victor wrote: > Well, still shows the same problem. In the other Controller i override this > method like this: > > public function isAuthorized($usuario = nu

Re: Login problem

2012-07-03 Thread Paulo Victor
Well, still shows the same problem. In the other Controller i override this method like this: public function isAuthorized($usuario = null) { if (($usuario['Status'] == 'Super') || ($usuario['Status'] == 'Coordenador')) { return true; } if (in_array($this->action, array('edit

Re: Login problem

2012-07-03 Thread Cosmin Paul
Make sure you call parent class, If you over-right the `isAuthorized` method. return parent::isAuthorized($user); Maybe this helps you, Cheers Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o

Login problem

2012-07-03 Thread Paulo Victor
I don't know what do do anymore. My login system is up and runnig, but no matter what, always denyes access, even with registered users, with hashed password. My AppController: class AppController extends Controller { public $components = array( 'Session', 'Auth'=>array(

Re: Atypical login problem

2011-12-28 Thread azim
=== app_controller.php === public $components = array( 'Auth' => array( 'authorize' => 'controller', 'loginAction' => '/users/login', ), 'RequestHandler', 'Security' => array( 'blackHoleCallback' => 'blackHole', ),

Re: Atypical login problem

2011-12-28 Thread euromark
without specific code from what you wrote so far (AppController, login action of controller etc) it isnt possible to help you On 28 Dez., 09:05, azim wrote: > Dear Cooks, > > I do have some serious problem with login action, which I couldn't > solve whatsoever. Our aplication is used by many sch

Atypical login problem

2011-12-28 Thread azim
Dear Cooks, I do have some serious problem with login action, which I couldn't solve whatsoever. Our aplication is used by many schools (with any type of local configuration). Sometimes when student try to login, "black hole" appears. Based on teachers phone calls its even depends on browser. What

Re: my own controller instead of user_controller login problem

2011-11-14 Thread danswater
thank you for your quick response sir. i will remember your tip and try to understand more cakephp -- 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 que

Re: my own controller instead of user_controller login problem

2011-11-14 Thread danswater
thank you for your quick response sir. I will try to read your links that you posted. -- 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 u

Re: my own controller instead of user_controller login problem

2011-11-14 Thread euromark
you should also be aware of uppercase and lowercase naming of your objects On 14 Nov., 15:46, phpMagpie wrote: > From page:http://book.cakephp.org/view/1250/Authentication > > "Now, there are a few conventions to think about when using AuthComponent. > By default, the AuthComponent expects you t

Re: my own controller instead of user_controller login problem

2011-11-14 Thread phpMagpie
>From page: http://book.cakephp.org/view/1250/Authentication "Now, there are a few conventions to think about when using AuthComponent. By default, the AuthComponent expects you to have a table called 'users' with fields called 'username' and 'password' to be used." So if you insist on using a

my own controller instead of user_controller login problem

2011-11-14 Thread danswater
Hi all! I am new in cakephp and i just downloaded cakephp ver. 1.3.13 and give it a try. I made a simple login/logout application using the auth component. I have a students and profiles tables in my database and i bake it using "cake bake all" so that it generates CRUD function. And i made an app

Re: Strange login problem

2011-07-29 Thread CaStarCo
The tmp is writable (I tryied it with logs), about sessions... the only I know now is what I can see in the phpinfo function, and It looks correct :s . But, in any case, the sessions dir is empty, I can't find any file except the empty default file of Cake :( . I simplified the code of the login

Re: Strange login problem

2011-07-29 Thread Jeremy Burns | Class Outfit
A few ideas. Is your session working correctly? Is your tmp directory and its subfolders read/write? Jeremy Burns Class Outfit http://www.classoutfit.com On 29 Jul 2011, at 10:12, CaStarCo wrote: > Studying my problem, I can explain a part of what happens, but not all, and > not why: > > Whe

Re: Strange login problem

2011-07-29 Thread CaStarCo
Studying my problem, I can explain a part of what happens, but not all, and not why: When I login with correct data, the Auth component does a correct login, I can read the $this->Auth->user () data, but the next strange step is that my cake app logout automatically my user :s (in my production se

Re: Strange login problem

2011-07-28 Thread CaStarCo
2011/7/28 castarco > Hello. I'm having strange problems with the login feature... but in a > strange way, while it runs on my local installation, it doesn't work > in the production server... > > What I expect of the code: the users fill the login form, click login > and then is called the login

Strange login problem

2011-07-28 Thread castarco
Hello. I'm having strange problems with the login feature... but in a strange way, while it runs on my local installation, it doesn't work in the production server... What I expect of the code: the users fill the login form, click login and then is called the login action of users controller. If t

Login problem

2009-07-28 Thread DatacenterHellas
Hello all :) I'm using the Auth to login into my system and I have a litle problem. Any time I like to login I have to enter two times the Login information. i.e. : I enter my login informations and press login. After this my system return back to login screen I re-enter my login informations

Re: Weird login problem

2009-05-19 Thread Jules
Found it, thanks. I had some custom logout code in AppController::beforeFilter() which was causing the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to ca

Re: Weird login problem

2009-05-19 Thread John Andersen
Sorry, in the before filter method :) John On May 19, 2:58 pm, Jules wrote: >     function beforeRender() { >         // make logged-in user's details available to ALL pages >         if($this->Session->check('Auth.User.id')) { >             $user = $this->Auth->User(); >             $this->s

Re: Weird login problem

2009-05-19 Thread Jules
function beforeRender() { // make logged-in user's details available to ALL pages if($this->Session->check('Auth.User.id')) { $user = $this->Auth->User(); $this->set('logged_in_user', $user['User']); } } --~--~-~--~~~-

Re: Weird login problem

2009-05-19 Thread John Andersen
What have you written in the before render method in the app controller? John On May 19, 2:14 pm, Jules wrote: > Running CakePHP site with Auth. > > When I visit /users/login or /users/logout, I end up at /users/login. > All fine so far.  When I try to login, the login fails, and the SQL > lo

Weird login problem

2009-05-19 Thread Jules
Running CakePHP site with Auth. When I visit /users/login or /users/logout, I end up at /users/login. All fine so far. When I try to login, the login fails, and the SQL log shows; SELECT `User`.`id`, `User`.`email`, `User`.`password` FROM `users` AS `User` WHERE `User`.`id` IS NULL LIMIT 1 Not

Re: login problem

2009-03-31 Thread brian
Sorry for the noise. It was indeed this line: $this->Auth->authorize = 'actions'; I thought that because there is no ACO for PagesController there wouldn't be a problem. In any case, this isn't what I want to do, after all. Back to the drawing board ... On Tue, Mar 31, 2009 at 10:14 PM, brian

login problem

2009-03-31 Thread brian
The problem is simply that I can't log in. I've done this before but I'm trying to build an ACL-controlled site and following along with the manual's example app. WHen I try loggin in I get "You are not authorized to access that location." I suspect the problem might be with the redirect, and not

Re: Login problem in 8004

2009-02-15 Thread hashmich
Hi Bjorn, I experienced similar strange behavior, when I didn't log out before logging in again. If $this->Session->read('Auth.User.id') is still valid, the login-action seems not to be performed, because it's not necessary. Same happens then to the redirect. Be sure to destroy all sessions and c

Login problem in 8004

2009-02-15 Thread Bjorn
Hi, I just updated to version 8004 from 7296 and now I have problem with logging in. In my beforeFilter in app_controller I have the following $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->logoutRedirect = 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 cake-php@googlegro

Custom Auth Login Problem

2008-02-25 Thread BravoFoxtrot
Hi, I've created an Ldap component that connects to an Active directory server to do authentication. The ldap componet works well and I'm using it for a number of applications. I created a custom authentication component (MyAuth) that overrides the isAuthorized and hashPasswords function. MyAut

othAuth Login Problem

2007-11-23 Thread jm
After giving up on the new CakePHP Auth component, I found othAuth. I followed the documentation on the Bakery site: http://bakery.cakephp.org/articles/view/othauth-0-5-documentation And I have it working just like it should. The only problem, every time a user logs in, a new record is created

Re: othAuth...login problem

2007-04-24 Thread CraZyLeGs
notice you have $this->set('auth_msg', $this->othAuth- >getMsg($auth_num)); and you don't print it in the view, it has some login hints for the user. like user/login incorrect etc.. On Apr 23, 7:07 pm, Stacey <[EMAIL PROTECTED]> wrote: > ok, i'm stupid. i am new to cake, and thought that othAuth

Re: othAuth...login problem

2007-04-23 Thread Stacey
ok, i'm stupid. i am new to cake, and thought that othAuth somehow handled the field validation. after reading some posts, i realized i need to do it myself. got it working...thanks. On Apr 23, 12:30 pm, Stacey <[EMAIL PROTECTED]> wrote: > hi all, > > cake version: v1.1.13.4450 > > i've been tryi

othAuth...login problem

2007-04-23 Thread Stacey
hi all, cake version: v1.1.13.4450 i've been trying to implement othAuth, and seem to be having a problem with login errors. it seems to be installed properly...if i login with the correct password, it lets me access the pages. but, it is not returning any errors if the login is incorrect or if