Extension:LegalLogin

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:LegalLogin and the translation is 38% complete.
Manuel des extensions MediaWiki
OOjs UI icon advanced-invert.svg
LegalLogin
État de la version : stable
Screenshot of the LegalLogin extension UI.png
Implémentation Activité utilisateur
Description The LegalLogin extension require acceptance of legal policies and correct answer on test questions during account creation and login.
Auteur(s) Pavel Astakhov (Pastakhovdiscussion)
Maintenance WikiTeq team
Dernière version 1.0
Politique de compatibilité Suit le cycle de vie des versions MediaWiki. Le master n'est pas compatible arrière.
MediaWiki 1.35+
PHP 7.4.3+
Modifie la base
de données
Oui
Tables legallogin_accepted
legallogin_logged
Licence Licence publique générale GNU v2.0 ou supérieur
Téléchargement
README
$wgLegalLoginPolicies, $wgLegalLoginQuestions, $wgLegalLoginExpiration, $wgLegalLoginInterval, $wgLegalLoginLogActions
legallogin-view-log
Traduire l’extension LegalLogin sur translatewiki.net si elle y est disponible

Vérifier la matrice des utilisations et des versions.

The LegalLogin extension require acceptance of legal policies and correct answer on test questions during account creation and login.

This extension was created for WikiWorks.

Installation

  • Téléchargez et placez le(s) fichiers (s) dans un répertoire appelé LegalLogin dans votre dossier extensions/.
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
    wfLoadExtension( 'LegalLogin' );
    
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

Paramètres de configuration

$wgLegalLoginPolicies
The list of legal policies that will require acceptance during account creation and login. Only pages in NS_MEDIAWIKI namespaces allowed as correct values.
$wgLegalLoginQuestions
The questions that users will need to answer correctly before login. Only pages in NS_MEDIAWIKI namespaces allowed as correct values.
$wgLegalLoginExpiration
Require acceptance of legal policies again after defined seconds.
$wgLegalLoginInterval
Require acceptance of legal policies again after defined number of logins.
$wgLegalLoginLogActions
Save LegalLogin actions like acceptance of the policies to Special:Log.

Exemple:

$wgLegalLoginPolicies = [
   'Terms and Conditions of Use' => [ // text from MediaWiki:Terms and Conditions of Use, title is the same
      'require scrolling' => true, // user must scroll it to down or open in popup windows before accept
   ],
   'Privacy policy' => [ // text from MediaWiki:Privacy policy
      'captionmsg' => 'privacy-policy-caption', // MediaWiki:Privacy-policy-caption // caption of the policy
   ],
];


$wgLegalLoginQuestions = [
   'I hate this site' => [
      'answer' => false,
      'help' => 'This is a hint',
   ],
   'I love this site' => [
      'answer' => true,
   ]
];

Droits utilisateur

legallogin-view-log
Allow to view LegalLogin actions like acceptance of the policies in "Special:Log"
Wikiteq - logo.png This extension is professionally maintained by the WikiTeq team.