if(!empty($q['two_factor_auth_code'])) {
+ $person = $this;
+
if(isset($q['id'])) {
$person = DB_DataObject::factory('Core_person');
$person->get($q['id']);
- $person->checkTwoFactorAuthentication($q['two_factor_auth_code']);
}
- if($this->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
+ if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
$roo->jok('DONE');
}