Skip to content

Commit de184ce

Browse files
committed
:octocat: omit URI settings by default
1 parent 9d43991 commit de184ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/AuthenticatorOptionsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ trait AuthenticatorOptionsTrait{
9797
*
9898
* @link https://github.com/google/google-authenticator/wiki/Key-Uri-Format#parameters
9999
*/
100-
protected bool $omitUriSettings = false;
100+
protected bool $omitUriSettings = true;
101101

102102
/**
103103
* Sets the code length to either 6 or 8

tests/AuthenticatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function testGetUri():void{
4343
$label = rawurlencode(self::label);
4444
$issuer = rawurlencode(self::issuer);
4545

46+
$this->options->omitUriSettings = false;
4647
$this::assertSame(
4748
sprintf('otpauth://totp/%s?secret=%s&issuer=%s&digits=6&algorithm=SHA1&period=30', $label, self::secret, $issuer),
4849
$this->authenticator->getUri(self::label, self::issuer),

0 commit comments

Comments
 (0)