Skip to content

Commit

Permalink
Harden PragmaRX secret to 32 bytes (snipe#2859)
Browse files Browse the repository at this point in the history
This is needed at all but that extra security is always good.
  • Loading branch information
base-zero authored and dmeltzer committed Nov 6, 2016
1 parent 57d0ac0 commit c63cab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function getTwoFactorEnroll()
$google2fa = app()->make('PragmaRX\Google2FA\Contracts\Google2FA');

if ($user->two_factor_secret=='') {
$user->two_factor_secret = $google2fa->generateSecretKey();
$user->two_factor_secret = $google2fa->generateSecretKey(32);
$user->save();
}

Expand Down

0 comments on commit c63cab9

Please sign in to comment.