Go to the documentation of this file.
79 $template->set(
'usedomain',
false );
97 if ( isset( $this->domain ) ) {
100 return 'invaliddomain';
127 # Override this and do something
158 if ( $prop ==
'realname' && is_callable(
array( $this,
'allowRealNameChange' ) ) ) {
159 return $this->allowRealNameChange();
160 } elseif ( $prop ==
'emailaddress' && is_callable(
array( $this,
'allowEmailChange' ) ) ) {
161 return $this->allowEmailChange();
162 } elseif ( $prop ==
'nickname' && is_callable(
array( $this,
'allowNickChange' ) ) ) {
163 return $this->allowNickChange();
258 public function strict() {
285 # Override this to do something.
324 public function getId() {
allowSetLocalPassword()
Should MediaWiki store passwords in its local database?
getDomain()
Get the user's domain.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
setDomain( $domain)
Set the domain this plugin is supposed to use when authenticating.
allowPropChange( $prop='')
Allow a property change? Properties are the same as preferences and use the same keys.
authenticate( $username, $password)
Check if a username+password pair is a valid login.
addUser( $user, $password, $email='', $realname='')
Add a user to the external authentication database.
getCanonicalName( $username)
If you want to munge the case of an account name before the final check, now is your chance.
getUserInstance(User &$user)
Get an instance of a User object.
updateExternalDBGroups( $user, $addgroups, $delgroups=array())
Update user groups in the external authentication database.
allowPasswordChange()
Can users change their passwords?
updateUser(&$user)
When a user logs in, optionally fill in preferences and such.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
canCreateAccounts()
Check to see if external accounts can be created.
updateExternalDB( $user)
Update user information in the external authentication database.
strictUserAuth( $username)
Check if a user should authenticate locally if the global authentication fails.
initUser(&$user, $autocreate=false)
When creating a user account, optionally fill in preferences and such.
userExists( $username)
Check whether there exists a user account with the given name.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
autoCreate()
Return true if the wiki should create a new local account automatically when asked to login a user wh...
return false to override stock group addition can be modified try getUserPermissionsErrors userCan checks are continued by internal code can override on output return false to not delete it return false to override the default password checks this Boolean value will be checked to determine if the password was valid return false to implement your own hashing method & $password
strict()
Return true to prevent logins that don't authenticate here from being checked against the local datab...
domainList()
Get a list of domains (in HTMLForm options format) used.
setPassword( $user, $password)
Set the given password in the authentication database.
modifyUITemplate(&$template, &$type)
Modify options in the login template.
validDomain( $domain)
Check to see if the specific domain is a valid domain.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Authentication plugin interface.