dre1080 / warden

More than just a user database auth package for FuelPHP
http://dre1080.github.com/warden
MIT License
46 stars 11 forks source link

Lock issue #15

Closed andreoav closed 12 years ago

andreoav commented 12 years ago

When:

lockable, in_use == false in the warden config file i'm getting this exception:

File: model/user.php, line 224

elseif ($record->is_access_locked()) {
    throw new Warden_Failure('locked');
}

The is_access_locked() function returns return !$this->is_lock_expired(), and in the function **is_lock_expired()" returns false when lockable is disabled... the false will be returned to the first call as true, and we have an exception even with lockable disabled

dre1080 commented 12 years ago

Are you using the latest version of warden?

andreoav commented 12 years ago

Yes