Extension:PluggableAuth/Hooks/PluggableAuthUserAuthorization/fr

From mediawiki.org
This page is a translated version of the page Extension:PluggableAuth/Hooks/PluggableAuthUserAuthorization and the translation is 100% complete.
PluggableAuthUserAuthorization
Disponible depuis la version 1.0 (Gerrit change 170132)
appelé pour déterminer si l'utilisateur est autorisé à se connecter au wiki
Fonction à définir :
public static function onPluggableAuthUserAuthorization( UserIdentity $user, bool &$authorized ) { ... }
Accroche correspondante :
$wgHooks['PluggableAuthUserAuthorization'][] = 'MyExtensionHooks::onPluggableAuthUserAuthorization';
Appelé de :Fichier(s) : PluggableAuth / includes/PluggableAuthLogin.php
Fonction(s) : execute

Pour plus d'information sur la manière d'attacher des accroches (hooks), voir Accroches .
Pour des exemples d'autres extensions qui utilisent cette accroche, voir Category:PluggableAuthUserAuthorization extensions/fr .

Détails

  • UserIdentity $user - l'objet User
  • bool &$authorized - Valeur de retour booléenne (true si autorisé, false dans le cas contraire)

The possible return values for the handler are defined in Manual:Hooks. In particular, if there has not been an error, the hook function should return no value or null to allow other handlers to run or it should return false to prevent further handlers from running. It is, therefore, possible that the value of $authorized passed in may be false from a previous handler invocation that returned no value or null. The handler may choose to override that value or to leave it unchanged.