Erweiterung:LegalLogin

This page is a translated version of the page Extension:LegalLogin and the translation is 46% complete.
Diese Erweiterung wird vom WikiTeq-Team professionell gewartet.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
MediaWiki-Erweiterungen
LegalLogin
Freigabestatus: stabil
Einbindung Benutzeraktivität
Beschreibung The LegalLogin extension requires acceptance of legal policies and correct answer on test questions during account creation and login.
Autor(en) Pavel Astakhov (PastakhovDiskussion)
Betreuer WikiTeq team
Letzte Version 1.0 (Jan 2023)
Kompatibilitätspolitik Für jede MediaWiki-Version, die ein Long Term Support Release ist, existiert ein entsprechender Zweig in der Erweiterung.
MediaWiki 1.35, 1.39
PHP 7.4.3+
Datenbankänderungen Ja
Tabellen legallogin_accepted
legallogin_logged
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen
README
$wgLegalLoginPolicies, $wgLegalLoginQuestions, $wgLegalLoginExpiration, $wgLegalLoginInterval, $wgLegalLoginLogActions
legallogin-view-log
Quarterly downloads 2 (Ranked 142nd)
Übersetze die LegalLogin-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden

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

Diese Erweiterung wurde für WikiWorks erstellt.

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens LegalLogin im Ordner extensions/ ablegen.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LegalLogin
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'LegalLogin' );
    
  •   Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Konfigurationsparameter

$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.

Beispiel:

$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,
   ]
];

Benutzerrechte

legallogin-view-log
Allow to view LegalLogin actions like acceptance of the policies in "Special:Log"