diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-10 00:37:03 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-10 00:37:03 -0400 |
commit | 33a2beb47506fa67bceb76fbc2d9742e85ad0605 (patch) | |
tree | 96f154b19dafb48b1024b75689b57901814651fa /models | |
parent | a4a44a6115a980dc768985690f611b24232036f5 (diff) | |
download | otakuhub-33a2beb47506fa67bceb76fbc2d9742e85ad0605.tar.xz |
Remove mongo schema + change salt -> pepper
Diffstat (limited to 'models')
-rw-r--r-- | models/User.php | 8 |
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 |