MandatoryTwoFactor¶
-
class
OC\Authentication\TwoFactorAuth\MandatoryTwoFactor¶ Source: lib/private/Authentication/TwoFactorAuth/MandatoryTwoFactor.php#33
Properties¶
Methods¶
-
public
OC\Authentication\TwoFactorAuth\MandatoryTwoFactor::__construct($config, $groupManager)¶ Source: lib/private/Authentication/TwoFactorAuth/MandatoryTwoFactor.php#41
-
public
OC\Authentication\TwoFactorAuth\MandatoryTwoFactor::getState()¶ - Get the state of enforced two-factor auth
Source: lib/private/Authentication/TwoFactorAuth/MandatoryTwoFactor.php#49
-
public
OC\Authentication\TwoFactorAuth\MandatoryTwoFactor::setState($state)¶ - Set the state of enforced two-factor auth
Source: lib/private/Authentication/TwoFactorAuth/MandatoryTwoFactor.php#60
-
public
OC\Authentication\TwoFactorAuth\MandatoryTwoFactor::isEnforcedFor($user)¶ - Check if two-factor auth is enforced for a specific userThe admin(s) can enforce two-factor auth system-wide, for certain groups onlyand also have the option to exclude users of certain groups. This method willcheck their membership of those groups.
Source: lib/private/Authentication/TwoFactorAuth/MandatoryTwoFactor.php#77
Parameters: - $user (
OCP\IUser)
Returns: bool
- $user (