|
|
@@ -10,12 +10,12 @@ use \lithium\security\Password;
|
|
|
|
|
|
class User extends \lithium\data\Model {
|
|
|
//To bypass mongo bug
|
|
|
- protected $_meta = array('key' => '_id');
|
|
|
- protected $_schema = array('_id' => array('type' => 'id'),
|
|
|
+ //protected $_meta = array('key' => '_id');
|
|
|
+ /*protected $_schema = array('_id' => array('type' => 'id'),
|
|
|
'feed' => array('type'=>'string', 'array' => true),
|
|
|
'animelist' => array('type' => 'object', 'array' => true),
|
|
|
'mangalist' => array('type' => 'object', 'array' => true)
|
|
|
- );
|
|
|
+ );*/
|
|
|
|
|
|
public static function __init()
|
|
|
{
|
|
|
@@ -338,7 +338,7 @@ class User extends \lithium\data\Model {
|
|
|
|
|
|
//Hash their password.
|
|
|
$data['password'] = Password::hash($entity->newpass, $salt);
|
|
|
- $data['salt'] = $salt;
|
|
|
+ $data['pepper'] = $salt;
|
|
|
unset($entity->newpass);
|
|
|
}
|
|
|
//If the entity doesn't exist or if the password password has been modified
|