$user->getDisplayName(), 'uid' => $user->getUID(), 'provider' => $provider->getDisplayName(), ]; $this->log( 'Failed two factor attempt by user %s (%s) with provider %s', $params, [ 'displayName', 'uid', 'provider', ] ); } /** * Logs successful twofactor challenge */ public function twofactorSuccess(IUser $user, IProvider $provider): void { $params = [ 'displayName' => $user->getDisplayName(), 'uid' => $user->getUID(), 'provider' => $provider->getDisplayName(), ]; $this->log( 'Successful two factor attempt by user %s (%s) with provider %s', $params, [ 'displayName', 'uid', 'provider', ] ); } }