mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-24 21:05:03 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -45,15 +45,15 @@ class PasswordChangeNeededSubscriberTest extends TestCase
|
|||
$user->setGroup($group);
|
||||
$this->assertFalse(PasswordChangeNeededSubscriber::TFARedirectNeeded($user));
|
||||
|
||||
//The user must be redirected if the group enforces 2FA and it does not have a method
|
||||
//The user must be redirected if the group enforces 2FA, and it does not have a method
|
||||
$group->setEnforce2FA(true);
|
||||
$this->assertTrue(PasswordChangeNeededSubscriber::TFARedirectNeeded($user));
|
||||
|
||||
//User must not be redirect if google authenticator is setup
|
||||
//User must not be redirect if google authenticator is set up
|
||||
$user->setGoogleAuthenticatorSecret('abcd');
|
||||
$this->assertFalse(PasswordChangeNeededSubscriber::TFARedirectNeeded($user));
|
||||
|
||||
//User must not be redirect if 2FA is setup
|
||||
//User must not be redirect if 2FA is set up
|
||||
$user->setGoogleAuthenticatorSecret(null);
|
||||
$user->addWebauthnKey(new WebauthnKey(
|
||||
"Test",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue