X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FAuthPlugin.php;h=2e42439c9f8604eb5bd583dde25db9a1debf849e;hb=a78b35a36df8ff4c52261e1308b6118009b451f2;hp=e55047371329f46ea8acb0657b8abbeb3ba95b38;hpb=af16ce7257634e9d5bef5266f8e3c4d84b93d9d2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/AuthPlugin.php b/includes/AuthPlugin.php index e550473713..2e42439c9f 100644 --- a/includes/AuthPlugin.php +++ b/includes/AuthPlugin.php @@ -34,6 +34,12 @@ * someone logs in who can be authenticated externally. */ class AuthPlugin { + + /** + * @var string + */ + protected $domain; + /** * Check whether there exists a user account with the given name. * The name will be normalized to MediaWiki's requirements, so @@ -83,6 +89,19 @@ class AuthPlugin { $this->domain = $domain; } + /** + * Get the user's domain + * + * @return string + */ + public function getDomain() { + if ( isset( $this->domain ) ) { + return $this->domain; + } else { + return 'invaliddomain'; + } + } + /** * Check to see if the specific domain is a valid domain. * @@ -157,6 +176,15 @@ class AuthPlugin { return true; } + /** + * Should MediaWiki store passwords in its local database? + * + * @return bool + */ + public function allowSetLocalPassword() { + return true; + } + /** * Set the given password in the authentication database. * As a special case, the password may be set to null to request