Email-based self-registration with admin confirmation

Authentication ::: auth_emailadmin
Maintained by Felipe Carasso
Provides email-based self-registration with admin confirmation instead of user confirmation.
Latest release:
1383 sites
406 downloads
124 fans
Current versions available: 5

Please read the INSTALL file carefully

Moodle plugin to provide email self-registration with admin confirmation.

The confirmation email is sent to the main admin account's email address.

When the admin clicks on the confirmation link, a "welcome" email is sent to the user.

Email body needs to be customized within the language file.

Based on default email-based self-registration module.

What's new in 1.4.6
================
Issues fixed (thanks to KerstinSc, deds:, gmrsagar for their contributions):

ISSUE-50: Proper escaping of single qutoes in lang file,

ISSUE-45: User can login without admin's intervention (using Re-send confirmation button),

ISSUE-42: Privacy provider test failing,

ISSUE-38: Confirmation message to the admin gives randomly wrong user name.

What's new in 1.4.5
================
Compatibility fix for Moodle 3.9

What's new in 1.4.4
================

fix(ISSUE-29): repairs config reference for Captcha after Settings API migration


What's new in 1.4.3
================
fix(ISSUE-17): repairs lock user fields, db update
feat(ISSUE-18): adds support for notifying users with user update capability
fix(ISSUE-21): updates config to use settings api
fix(ISSUE-25): makes use of lib function to gather profile fields

What's new in 1.4.2
================
fix(ISSUE-26): adds login and capability check to confirm.php (fixes phantom user-confirm)


Screenshots

Screenshot #0
Screenshot #1

Contributors

Felipe Carasso (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Alan Cherwinski
    Tue, 17 Nov 2015, 1:13 AM
    Hello - I am experiencing the same problem as Daniel G in October. The admin does get a message, but the user sees an error message on screen - "Tried to send you an email but failed!" - which suggests the user needs to try again. I have SMTP configured and running for the admin email. Is some helpful message meant to be displayed or emailed/sent to new user?
    Thanks
  • Felipe Carasso
    Tue, 17 Nov 2015, 1:38 AM
    Re: "Tried to send you an email but failed" (Daniel G and Alan Cherwinski)
    I can't help with that as I can't reproduce the problem. The best I can suggest is to ensure the server can send email messages to the concerned users, i.e. using command-line 'mail' from the same OS account that runs Moodle (could be www-data). If Moodle can't send email to a given address, most likely the server and/or the OS account itself can't.
  • Muhd Hanis Hanis
    Tue, 15 Dec 2015, 3:37 PM
    Hi, I want to ask about notification email for admin and user. How to modify user data that sent to admin email when user registered? The user data is too many, such as:

    id: 30
    auth: emailadmin
    confirmed: 0
    policyagreed: 0
    deleted: 0
    suspended: 0
    mnethostid: 1
    username:
    password:
    idnumber:
    firstname:
    lastname:
    email:
    emailstop:
    icq:
    skype:
    yahoo:
    aim:
    msn:
    phone1:
    phone2:
    institution:
    department:
    address:

    I just want to display first name, surname, email, password and custom user field only.

    One more question, after admin click on the the confirmation link, the notification email should be sent to user, but the user did not received the email, and sometimes it take few hours for user to received the email.

    Please help, thanks
  • Felipe Carasso
    Tue, 15 Dec 2015, 10:28 PM
    Hi Muhd,

    For now, you'd need to modify the plug-in's code (auth.php) to have your custom user info available to the message. I'll evaluate the possibility of making that available on the next version.

    Intermittent email delivery is not related to this plug-in, but to how Moodle, PHP and email servers in general deal with email messages.

    Best regards,
    Felipe
  • Muhd Hanis Hanis
    Tue, 15 Dec 2015, 11:33 PM
    Hi Felipe,
    I think these are the lines of codes that need modification:
    Lines 257:
    $data->userdata .= $dataname . ': ' . $datavalue . PHP_EOL;

    But, where should i find the list of user data..for example, i need to remove emailstop, icq, skype, yahoo, aim, msn field and etc.

    For the intermittent email delivery, can you suggest where should i look to configure so the user email will received instantly after admin approve?

    Thank you so much!
  • Felipe Carasso
    Wed, 16 Dec 2015, 1:41 PM
    I just released a new version where you can use specific user fields in the notification message. See default notification message for example.

    Best regards,
    Felipe
  • Muhd Hanis Hanis
    Wed, 16 Dec 2015, 4:05 PM
    I am using moodle 2.7, cannot install since it give me Validation failed! and displayed Error, Required version 2015051101. How do i solve this? Upgrading moodle version is not my option right now sad
  • Alan Cherwinski
    Tue, 12 Jan 2016, 5:34 AM
    Hello Felipe Carasso, I checked with my host provider and they tested the script and watched the mail server. The script appeared not to make any attempt to send an email to the new registrant. The email messages got delivered to the Moodle site administrators, but not the end user. The script is now displaying a very long trail of activity. I don't have debugging turned on. I can send you the 1234 lines of code that get kick out on screen during self registration. Thanks Moodle 2.9.2
  • Felipe Carasso
    Wed, 13 Jan 2016, 12:38 PM
    @Muhd: The latest version of this plug-in uses Moodle APIs that require that minimum version. It won't work on an older version. You can still try to use an older version of this plug-in that supports your Moodle version.

    @Alan: If you use the regular 'email self-registration', does the user get the notification? Maybe you customized the notification and made a mistake?
  • Alan Cherwinski
    Thu, 14 Jan 2016, 12:23 AM
    Thanks Muhd and Felipe,
    I am using the latest release of 2.9.4 and an up to date plug in. I have not modified or customized the any code. The registration results page displays over 1200 lines of code to the end user and still does not send a message to the self registering user. The email is going to the site administrator.
  • Alan Cherwinski
    Thu, 14 Jan 2016, 12:53 AM
    Thanks Muhd and Felipe, - I figured it out. The email debugging was turned on, the regular debugging was set to minimal - hence the display code. Also the self registration and sr with admin where enabled, but self registration was not enabled on the manage authentication page. Once all those were aligned and the debug code eliminated it worked like a charm. A bad combination of missteps lead to my confusion. Thanks again for your help and the great pluggin.
  • Alan Cherwinski
    Thu, 14 Jan 2016, 1:15 AM
    Could there be some other setting or configuration required or that I am missing? The confirmation link in the email is not working "Error 500". I've cut and pasted the url and can't see what is the issue. http://<>/auth/emailadmin/confirm.php?data=Yq5SePmiylh7erQ/alantest

    (FYI if a single site admin is selected in the pluggin setting the message is going to all)
  • Alan Cherwinski
    Thu, 14 Jan 2016, 2:33 AM
    My dedicated server admin checked the log files for the broken confirm code and reported back:
    Based on the logs in the Apache error log, the problem is with the script (Premature end of script headers: confirm.php):


    CT-19331-bash-4.1# tail -f /usr/local/apache/logs/error_log
    [Wed Jan 13 13:07:47 2016] [error] [client 209.50.226.20] Premature end of script headers: confirm.php
  • AM Sanat
    Sat, 20 Feb 2016, 6:29 PM
    Hi
    When install new calendar and set it on site administration- appearance- calendar- calendar type
    If new user create new account
    Automatically In profile set Gregorian for preferred calendar
    But calendar type must set to preferred calendar
    Please check it
  • Chad Nixon
    Tue, 10 May 2016, 10:43 PM
    Love the plugin! But I am trying to find the settings in the new plugin that allows you to specify userfields?

    I just released a new version where you can use specific user fields in the notification message. See default notification message for example.

    id: 30
    auth: emailadmin
    confirmed: 0
    policyagreed: 0
    deleted: 0
    suspended: 0
    mnethostid: 1
    username:
    password:
    idnumber:
    firstname:
    lastname:
    email:
    emailstop:
    icq:
    skype:
    yahoo:
    aim:
    msn:
    phone1:
    phone2:
    institution:
    department:
    address:

    I just want to display first name, surname, email, password and custom user field only.
Please login to post comments