return md5(implode(',' , array($month, $this->email , $this->passwd, $this->id)));
}
- function checkTwoFactorAuthentication($val, $oath_key)
+ function checkTwoFactorAuthentication($val)
{
// also used in login
if(
empty($this->id) ||
- empty($oath_key)
+ empty($this->oath_key)
) {
return false;
}
if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
$o = clone($person);
- $person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];
$person->update($o);
unset($_SESSION[__CLASS__]['oath'][$person->id]);