Go to the documentation of this file.
67 $authUser = $userRepo->findByUser( $user );
69 if ( !( $authUser->getModule() instanceof
TOTP ) ) {
73 wfMessage(
'oathauth-auth-ui' ),
'warning' );
86 wfMessage(
'oathauth-login-failed' ),
'error' );
90 $authUser = $userRepo->findByUser( $user );
91 $token = $request->OATHToken;
93 if ( !( $authUser->getModule() instanceof
TOTP ) ) {
94 $this->logger->warning(
'Two-factor authentication was disabled mid-authentication for '
100 if ( $user->pingLimiter(
'badoath', 0 ) ) {
104 'oathauth-throttled',
106 [ Message::durationParam( 60 ) ]
110 if ( $authUser->getModule()->verify( $authUser, [
'token' => $token ] ) ) {
114 wfMessage(
'oathauth-login-failed' ),
'error' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...