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
Hi all, I'm struggling getting this code working, wondering if anyone had
any insights
I've written an application that has a lot of web services, It used Zend to
create a server and loads classes from my lib folder
So my structure is like this:
app/Controller/WebServicesController.php
app/Li
Morning all,
CakePHP 2.4.1 seems to drop boolean html attributes in some cases and not
others.
If I use
$this->Form->create("Recipe", array('data-attribute'=>''));
Then Cakephp (2.4.1) will correctly output
>
If I try the same on an input, for example:
> $this->Form->input('name', ar
I have created a custom authorize component as per the book (I have some
very complex permissions that are pulled from existing data sources).
Everything works as planned, however whenever the component returns false
(access not allowed), I get the following output:
You are not authorized to ac
In response to my own question, setting "recursive" to 1 in the
AppController Auth definition allowed me to pull in associated
customer_orgs rows in the Auth->login() call.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received
Okay, I've finally managed to resolve this, it was a basic mistake. Here's
what I did:
I debugged the post data and saw that in $this->request->data, my login
fields were under the key 'customer_users' (which is the name of my users
table)
> Array
> (
> [customer_users] => Array
> (
> [usernam
Okay, I've finally managed to resolve the issue - but I'm not sure *why* it
resolves the issue. I'd appreciate any input. Here's what I did:
Note: my users table is named customer_users (with a habtm relationship
with customer_orgs associated by 'customer_orgs_customer_users')
In app/Model/User
Thanks Simon, I did indeed give it a go and it all went fine (apart from
DebugKit moaning, but I found the relevant fixes on Github). I found the
2.4 migration guide also, but simple people like me need "DO THIS"
instructions =]
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us o
Hi Mark, If I were to update my (in development, non-live 2.3.5) to
2.4.0-RC2, is it just a case of replacing the "lib" folder with the one
from the new package, or are there some deeper changes that require more
file modifications/console scripts? I'm particularly keen to use the new
passwordH
Hi all, I'm new here and in the process of building my first CakePHP app,
using a recently upgraded 2.3.5 > 2.4.0-RC2.
I've managed to get the new BlowfishPasswordHasher working with my User
model beforeSave() function, and can verify in the database that users are
created with a blowfish hash
10 matches
Mail list logo