Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Update GoogleAuthenticator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Networking authored Dec 7, 2023
1 parent f2168e6 commit 84805f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/GoogleAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class GoogleAuthenticator

/**
* Create new secret.
* 16 characters, randomly chosen from the allowed base32 characters.
* 40 characters, randomly chosen from the allowed base32 characters.
*
* @param int $secretLength
* @return string
*/
public function createSecret($secretLength = 16)
public function createSecret($secretLength = 40)
{
$validChars = $this->_getBase32LookupTable();
unset($validChars[32]);
Expand Down

0 comments on commit 84805f0

Please sign in to comment.