Skip to content
This repository has been archived by the owner on Oct 14, 2019. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 850 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 850 Bytes

AuthWordpress

DEPRECATED due new SessionManager and AuthManager since version 1.27 of MediaWiki for more Information look at: https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager

Wordpress Authentification module for MediaWiki

Installation

Just drop this file in extensions and add these few lines in your LocalSettings.php

require_once( 'extensions/AuthWordpress/AuthWordpress.php' );
$wgAuth = new AuthWordpress();
$wgAuth->setAuthWordpressTablePrefix('wp_');
$wgAuth->setAuthWordpressDBServer ('CHANGEME'); // wordpress host (eg. localhost)
$wgAuth->setAuthWordpressDBName('DBNAME'); // wordpress database
$wgAuth->setAuthWordpressUser('DBUSER'); // wordpress db username
$wgAuth->setAuthWordpressPassword('DBPASS'); // wordpress db password