mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Strip spaces from 2FA code. Closes #2405
This commit is contained in:
parent
e68c024eae
commit
2742797897
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user