You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
601 B
PHTML

<?php
namespace Isekai\OIDC;
use MediaWiki\Auth\AuthManager;
use MediaWiki\Auth\ButtonAuthenticationRequest;
class IsekaiOIDCAuthBeginAuthenticationRequest extends ButtonAuthenticationRequest {
public function __construct() {
parent::__construct(
'isekaioidclogin',
wfMessage( 'isekaioidc-loginbutton' ),
wfMessage( 'isekaioidc-loginbutton-help' ),
true );
}
/**
* Returns field information.
* @return array field information
*/
public function getFieldInfo() {
if ( $this->action !== AuthManager::ACTION_LOGIN ) {
return [];
}
return parent::getFieldInfo();
}
}