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
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
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(
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(
=== app_controller.php ===
public $components = array(
'Auth' => array(
'authorize' => 'controller',
'loginAction' => '/users/login',
),
'RequestHandler',
'Security' => array(
'blackHoleCallback' => 'blackHole',
),
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
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
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
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
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
>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
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
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
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
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
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
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
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
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
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
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']);
}
}
--~--~-~--~~~-
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
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
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
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
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
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' =>
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
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
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
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
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
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
49 matches
Mail list logo