Updates your user's identities on login based on a custom database query.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
611 B

<?php
$conf = array();
// Enables (true) or disables (false) the plugin
$conf['update_on_login'] = true;
// Remove identities for which the email address is unknown for this user
$conf['remove_unknown_identities'] = true;
// Connection to the database which holds user aliases information
$conf['dsn'] = '';
// Query all aliases for a given user. '%u' will be replaced with the username.
// Example : SELECT aliases.email FROM aliases LEFT JOIN users ON aliases.user_id=users.id WHERE users.name="%u"
$conf['identities_query'] = '';
// Finally register to the global config
$config['identity_db'] = $conf;