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 user
The admin(s) can enforce two-factor auth system-wide, for certain groups only
and also have the option to exclude users of certain groups. This method will
check their membership of those groups.
Source:

lib/private/Authentication/TwoFactorAuth/MandatoryTwoFactor.php#77

Parameters:
Returns:

bool