IProvidesPersonalSettings
extends
IProvider
in
Interface for admins that have personal settings. These settings will be shown in the security sections. Some information like the display name of the provider is read from the provider directly.
Tags
Table of Contents
Methods
- getDescription() : string
- Get the description for selecting the 2FA provider
- getDisplayName() : string
- Get the display name for selecting the 2FA provider
- getId() : string
- Get unique identifier of this 2FA provider
- getPersonalSettings() : IPersonalProviderSettings
- getTemplate() : Template
- Get the template for rending the 2FA provider view
- isTwoFactorAuthEnabledForUser() : bool
- Decides whether 2FA is enabled for the given user
- verifyChallenge() : bool
- Verify the given challenge
Methods
getDescription()
Get the description for selecting the 2FA provider
public
getDescription() : string
Example: "Get a token via e-mail"
Tags
Return values
stringgetDisplayName()
Get the display name for selecting the 2FA provider
public
getDisplayName() : string
Example: "Email"
Tags
Return values
stringgetId()
Get unique identifier of this 2FA provider
public
getId() : string
Tags
Return values
stringgetPersonalSettings()
public
getPersonalSettings(IUser $user) : IPersonalProviderSettings
Parameters
- $user : IUser
Tags
Return values
IPersonalProviderSettingsgetTemplate()
Get the template for rending the 2FA provider view
public
getTemplate(IUser $user) : Template
Parameters
- $user : IUser
Tags
Return values
TemplateisTwoFactorAuthEnabledForUser()
Decides whether 2FA is enabled for the given user
public
isTwoFactorAuthEnabledForUser(IUser $user) : bool
Parameters
- $user : IUser
Tags
Return values
boolverifyChallenge()
Verify the given challenge
public
verifyChallenge(IUser $user, string $challenge) : bool
Parameters
- $user : IUser
- $challenge : string