From 2742797897a8ecbda549b8fe62e527bc30c162c0 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 5 Mar 2017 17:42:01 +0000 Subject: [PATCH] Strip spaces from 2FA code. Closes #2405 --- app/Http/Controllers/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index ef17d71c83f7..70d0d0105ae5 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -94,7 +94,7 @@ public function postTwoFactor() { // 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);