浏览代码

Remove mongo schema + change salt -> pepper

Michael Francis 14 年之前
父节点
当前提交
33a2beb475
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      models/User.php

+ 4 - 4
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