Strip spaces from 2FA code. Closes #2405

This commit is contained in:
James Brooks 2017-03-05 17:42:01 +00:00
parent e68c024eae
commit 2742797897

View File

@ -94,7 +94,7 @@ class AuthController extends Controller
{
// Check that we have a session.
if ($userId = Session::pull('2fa_id')) {
$code = Binput::get('code');
$code = str_replace(' ', '', Binput::get('code'));
// Maybe a temp login here.
Auth::loginUsingId($userId);