MediaWiki
1.34.0
|
Public Member Functions | |
getConfig () | |
getDataFromUser (OATHUser $user) | |
getDescriptionMessage () | |
Return Message object for the short text to be displayed as description.
| |
getDisableWarningMessage () | |
Module-specific text that will be shown when user is disabling the module, to warn of data-loss.This will be shown alongside generic warning message.
| |
getDisplayName () | |
getManageForm ( $action, OATHUser $user, OATHUserRepository $repo) | |
getName () | |
Name of the module. More... | |
getSecondaryAuthProvider () | |
isEnabled (OATHUser $user) | |
Is this module currently enabled for the given user. More... | |
newKey (array $data) | |
verify (OATHUser $user, array $data) | |
Static Public Member Functions | |
static | factory () |
|
static |
MediaWiki\Extension\OATHAuth\Module\TOTP::getDataFromUser | ( | OATHUser | $user | ) |
OATHUser | $user |
MWException |
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 57 of file TOTP.php.
References MediaWiki\Extension\OATHAuth\OATHUser\getFirstKey().
MediaWiki\Extension\OATHAuth\Module\TOTP::getDescriptionMessage | ( | ) |
Return Message object for the short text to be displayed as description.
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 128 of file TOTP.php.
References wfMessage().
MediaWiki\Extension\OATHAuth\Module\TOTP::getDisableWarningMessage | ( | ) |
Module-specific text that will be shown when user is disabling the module, to warn of data-loss.This will be shown alongside generic warning message.
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 135 of file TOTP.php.
References wfMessage().
MediaWiki\Extension\OATHAuth\Module\TOTP::getDisplayName | ( | ) |
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 31 of file TOTP.php.
References wfMessage().
MediaWiki\Extension\OATHAuth\Module\TOTP::getManageForm | ( | $action, | |
OATHUser | $user, | ||
OATHUserRepository | $repo | ||
) |
string | $action | |
OATHUser | $user | |
OATHUserRepository | $repo |
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 107 of file TOTP.php.
References MediaWiki\$action, MediaWiki\Extension\OATHAuth\Special\OATHManage\ACTION_DISABLE, MediaWiki\Extension\OATHAuth\Special\OATHManage\ACTION_ENABLE, and MediaWiki\Extension\OATHAuth\OATHUser\getModule().
MediaWiki\Extension\OATHAuth\Module\TOTP::getName | ( | ) |
MediaWiki\Extension\OATHAuth\Module\TOTP::getSecondaryAuthProvider | ( | ) |
Implements MediaWiki\Extension\OATHAuth\IModule.
MediaWiki\Extension\OATHAuth\Module\TOTP::isEnabled | ( | OATHUser | $user | ) |
Is this module currently enabled for the given user.
OATHUser | $user |
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 97 of file TOTP.php.
References MediaWiki\Extension\OATHAuth\OATHUser\getFirstKey().
MediaWiki\Extension\OATHAuth\Module\TOTP::newKey | ( | array | $data | ) |
array | $data |
MWException |
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 41 of file TOTP.php.
References MediaWiki\Extension\OATHAuth\Key\TOTPKey\newFromArray().
MediaWiki\Extension\OATHAuth\Module\TOTP::verify | ( | OATHUser | $user, |
array | $data | ||
) |
OATHUser | $user | |
array | $data |
MWException |
Implements MediaWiki\Extension\OATHAuth\IModule.
Definition at line 80 of file TOTP.php.
References MediaWiki\Extension\OATHAuth\OATHUser\getFirstKey().