Loading Core/Security/Events.php +2 −0 Original line number Original line Diff line number Diff line Loading @@ -358,6 +358,8 @@ class Events $twofactor = new TwoFactor(); $twofactor = new TwoFactor(); $secret = $twofactor->createSecret(); //we have a new secret for each request $secret = $twofactor->createSecret(); //we have a new secret for each request error_log('2fa - sending SMS to ' . $user->guid); $this->sms->send($user->telno, $twofactor->getCode($secret)); $this->sms->send($user->telno, $twofactor->getCode($secret)); // create a lookup of a random key. The user can then use this key along side their twofactor code // create a lookup of a random key. The user can then use this key along side their twofactor code Loading Loading
Core/Security/Events.php +2 −0 Original line number Original line Diff line number Diff line Loading @@ -358,6 +358,8 @@ class Events $twofactor = new TwoFactor(); $twofactor = new TwoFactor(); $secret = $twofactor->createSecret(); //we have a new secret for each request $secret = $twofactor->createSecret(); //we have a new secret for each request error_log('2fa - sending SMS to ' . $user->guid); $this->sms->send($user->telno, $twofactor->getCode($secret)); $this->sms->send($user->telno, $twofactor->getCode($secret)); // create a lookup of a random key. The user can then use this key along side their twofactor code // create a lookup of a random key. The user can then use this key along side their twofactor code Loading