Commit f0a2ec8a authored by Mark Harding's avatar Mark Harding
Browse files

(chore): log all 2fa SMS messages

parent 5a1ef698
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -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