IActivatableByAdmin

interface OCP\Authentication\TwoFactorAuth\IActivatableByAdmin
Marks a 2FA provider as activatable by the administrator. This means that an
admin can activate this provider without user interaction. The provider,
therefore, must not require any user-provided configuration.
Source:lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php#38
Parent:OCP\Authentication\TwoFactorAuth\IProvider

Methods

public OCP\Authentication\TwoFactorAuth\IActivatableByAdmin::enableFor($user)
Enable this provider for the given user.
Source:

lib/public/Authentication/TwoFactorAuth/IActivatableByAdmin.php#49

Parameters:
  • $user (OCP\IUser) the user to activate this provider for
Returns:

void

Since:

15.0.0