codenitive / fuel-hybrid

A collection of classes to help your code hotter than before
http://codenitive.github.com/fuel-hybrid
MIT License
19 stars 3 forks source link

Auth::instance()->is_logged() #87

Closed azraai closed 13 years ago

azraai commented 13 years ago

When password is incorrect, the is_logged() function return true since static::$items has value already assigned. The function should not check the value of static::$items. Perhaps, the presence of session/cookie.

crynobone commented 13 years ago

Should be related to this line hybrid/classes/auth/connection.php

if (!is_null($this->items['_hash']) and $this->items['_hash'] !== \Hybrid\Auth::add_salt($hash)) 
{
    $this->reset();
}