summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/User.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/User.php b/models/User.php
index bf9eec2..a1c8f8d 100644
--- a/models/User.php
+++ b/models/User.php
@@ -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