Skip to content
Snippets Groups Projects
Commit 9ae2e15b authored by Alexander Bias's avatar Alexander Bias
Browse files

Bugfix: Check if LDAP auth is really used on manual user creation

parent a9c38059
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ This plugin requires Moodle 2.7+
Changes
-------
* 2014-09-02 - Bugfix: Check if LDAP auth is really used on manual user creation
* 2014-08-29 - Support login via email for first-time LDAP logins (MDL-46638)
* 2014-08-29 - Update version.php
* 2014-08-29 - Update README file
......
......@@ -26,8 +26,9 @@
defined('MOODLE_INTERNAL') || die;
function update_user_onevent($eventdata) {
// Do only if username is enclosed in $eventdata - this event handler might be called twice when creating an user, so we have to handle this fact
if (isset($eventdata->username) && is_string($eventdata->username)) {
// Do only if user has ldap_syncplus authentication and
// do only if username is enclosed in $eventdata - this event handler might be called twice when creating an user, so we have to handle this fact
if (isset($eventdata->auth) && $eventdata->auth == 'ldap_syncplus' && isset($eventdata->username) && is_string($eventdata->username)) {
// Get LDAP Plugin
$authplugin = get_auth_plugin('ldap_syncplus');
......
......@@ -26,8 +26,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'auth_ldap_syncplus';
$plugin->version = 2014051205;
$plugin->release = '2.7 (Build: 2014082901)';
$plugin->version = 2014051206;
$plugin->release = '2.7 (Build: 2014090200)';
$plugin->requires = 2014051200;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array('auth_ldap' => 2014051200);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment