Skip to content

Commit

Permalink
Strip spaces from 2FA code. Closes #2405
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Mar 5, 2017
1 parent e68c024 commit 2742797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 2742797

@ConnorVG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woah, this commit sha is amazing :0

Please sign in to comment.