Just had a thought. A really short cache could also do the trick, as long
as that cache content could be referenced by CakeResponse::file().
On Friday, 25 October 2013 16:34:39 UTC+10, Reuben wrote:
>
> Looking at the way CakeResponse::file() works, it does not appear it is
> possible to clean
Looking at the way CakeResponse::file() works, it does not appear it is
possible to clean up a particular file in the same request that generated
it, because the file is send when the body is actually generated, which is
after afterFilter, and after all the Dispatch Filters would have fired.
In
I have a function that extracts a file from an archive, and streams it to
the client via CakeResponse::file().
As a part of extracting the file from the archive, I've had to put it in a
temporary file, and then pass that to CakeResponse::file().
Once this is done, I'd like to clean up the tempo
I am converting a ROR website to Cake and the existing database has
"password", "email" and "salt" for the User.
How can I modify Cakes Auth to use the salt and the user entered password to
authenticate?
It's currently using bcrypt hash in conjunction with the saved user salt to
authenticate.
Hi
Could you paste your auth code in AppController and other Controller?
Thanks
Ethan
在 2013年10月23日星期三UTC+8上午1时27分13秒,Henrique Droog写道:
>
> Hello! I'm brazilian, sorry for my bad english.
>
> I'm using CakePHP 2.3.9, i can find results, save, update and delete, but
> when i'm trying to authent
Are you encrypting the password when you save the users?
if not try to add this to your user's model:
public function beforeSave($options = array()) {
if (isset($this->data[$this->alias]['password'])) {
$this->data[$this->alias]['password'] =
AuthComponent::password($this->data[$this->alias]['pa
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