Laravel认证每次刷新Hash结果失败


Laravel authentication fails to the Hash result refreshing each time

我制作了一个Laravel身份验证系统。它工作了,但在将laravel从4.1.2.5更新到4.1.2.6后,它停止了工作。我发现了问题,当用户尝试登录时,由于失败

Auth::attemp(array("user"=>$username, "password"=>$password))

重新生成了密码Hashes,因此与注册时生成的密码不匹配。

这是我的用户模型:

class User extends Eloquent implements UserInterface, RemindableInterface {
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'users';
    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = array('password');
    public function getRememberToken()
    {
        return $this->remember_token;
    }
    public function setRememberToken($value)
    {
        $this->remember_token = $value;
    }
    public function getRememberTokenName()
    {
        return 'remember_token';
    }
    public function getAuthPassword(){
    }
    public function getAuthIdentifier(){
    }
    function getReminderEmail (){
    }
}

这是我的登录尝试:

Auth::attempt(array("email"=>$data['email'], 'password'=>$data['password']))

4.1.25和4.1.26之间有一个中断变化。请查看此处的升级部分