znarf / dokuwiki-openid

Authenticate on a DokuWiki with OpenID
http://h6e.net/dokuwiki/plugins/openid
14 stars 14 forks source link

Doesn't generate registernotify email #3

Open razor-1 opened 11 years ago

razor-1 commented 11 years ago

When a new user logs in with their OpenID credentials and then goes on to register their real name, username, etc. the registernotify configuration is not followed; no email is generated. I submit this as a quick fix:

--- action.php.orig 2012-12-03 12:01:30.659645805 -0800
+++ action.php  2012-12-03 11:59:00.673286389 -0800
@@ -435,6 +435,9 @@

        $this->update_session($user);

+       //need to adhere to registernotify
+       notify('', 'register', '', $_POST['login'], false, array('NEWUSER'  => $_POST['login'], 'NEWNAME'  => $_POST['fullname'], 'NEWEMAIL' => $_POST['email']));
+
        // account created, everything OK
        $this->_redirect(wl($ID));
    }