$person = DB_DataObject::factory('core_person');
$person->get($q['id']);
+ $person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];
- if($person->checkTwoFactorAuthentication(
- $q['two_factor_auth_code'],
- $_SESSION[__CLASS__]['oath'][$person->id]
- )) {
+ if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
$o = clone($person);
$person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];