Skip to content

Instantly share code, notes, and snippets.

View ti-mo's full-sized avatar
💭
Taking a break.

Timo Beckers ti-mo

💭
Taking a break.
View GitHub Profile
@redoPop
redoPop / HashFormAuthenticate.php
Created October 5, 2011 00:22
CakePHP 2.0 Authentication object for use with better hash methods (bcrypt, etc.)
<?php
App::uses('FormAuthenticate', 'Controller/Component/Auth');
class HashFormAuthenticate extends FormAuthenticate {
/**
* Find a user record given a username and unhashed password.
*
* @param string $username The username/identifier.
* @param string $password The unhashed password.