diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-05 20:31:15 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-05 20:31:15 -0500 |
commit | e62779e26781c849bdc24f40e94330bec97f8069 (patch) | |
tree | fe72ffad1e8da07684d1400753ad6a2c794c21f5 /tests | |
parent | 811254ba93592de2470aee54cd21096d082b45ce (diff) |
Improve 2FA
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/Auth/TotpAuthTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/units/Auth/TotpAuthTest.php b/tests/units/Auth/TotpAuthTest.php index fcb7ea31..c8dcfb28 100644 --- a/tests/units/Auth/TotpAuthTest.php +++ b/tests/units/Auth/TotpAuthTest.php @@ -15,6 +15,9 @@ class TotpAuthTest extends Base public function testGetSecret() { $provider = new TotpAuth($this->container); + $this->assertEmpty($provider->getSecret()); + + $provider->generateSecret(); $secret = $provider->getSecret(); $this->assertNotEmpty($secret); @@ -48,7 +51,7 @@ class TotpAuthTest extends Base { $provider = new TotpAuth($this->container); - $secret = $provider->getSecret(); + $secret = $provider->generateSecret(); $this->assertNotEmpty($secret); $provider->setCode('1234'); |