I think there is a mistake in simple-auth-user.wiki, within the model.
The filter's anonymous function uses a variable called $document, although it is not declared or passed as an argument, I think it should have been $record:
{{{
<?php
namespace app\models;
class User extends \lithium\data\Model {
}
User::applyFilter('save', function($self, $params, $chain){
$record = $params['record'];
if (!$record->id) {
$record->password = \lithium\util\String::hash($record->password);
}
if (!empty($params['data'])) {
$record->set($params['data']);
}
$params['record'] = $record;
return $chain->next($self, $params, $chain);
});
?>
}}}
By the way, is there a simpler way to suggest corrections such as this other than the tickets?
Shay Ben Moshe