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:
1376 sites
104 fans
Current versions available: 5

WARNING: Moodle 3.6 introduced a "Resend Confirmation" feature that enables unconfirmed users to self-confirm. A bug is opened with Moodle to fix this regression:

You can manually apply the patch while Moodle is not fixed upstream. See

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.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)


Screenshot #0
Screenshot #1


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

Comments RSS


  • Wed, May 22, 2019, 9:40 PM
    We are using release 1.4.1 of this plugin with Moodle 3.6.1. The administrator does receive the email to confirm the account but is then advised that the account has already been confirmed. I've confirmed we have configured the authentication settings according to the instructions in the installer file. Is there anything else we need to do?
    Thank you
  • Sat, Jun 8, 2019, 7:16 PM
    Where do I edit this information that I receive from the Moodle site. I wasn't able to edit it on the Moodle site.

    Welcome to (My Organization)! Your account has been approved. If you have not already done so, please tell us how you discovered (My Organization).

    For student accounts, please let us know the project you would like to participate in and we will create your teacher account. The information for creating student accounts is at here.

    The first name needs to be the students "first name" and "first initial of the last name." The students last name will be the school name. Passwords need to be at least 8 characters long.

    We're delighted you have joined us and hope to see you and your students participating in some of our projects. You are now a member of a rapidly growing community of educators and students using (My Organization) to share projects, work and knowledge. If you ever need help don't hesitate to write to us at here. We'll try to address any questions, comments or concerns you may have regarding the (My Organization) with Google Resources, Services and Tools. Check out our web pages at here
  • Wed, Jun 26, 2019, 9:34 AM
    Hi @Shaun Sant,
    I got the same issue, I modified the file to make it working now.

    In auth.php, under function can_confirm():
    return true;
    return false;
    This works for me, hope this help.
  • Wed, Jun 26, 2019, 10:25 AM
    @Nothy Wu, you shouldn't do that. Doing it should break the possibility of having the admin confirm the user by clicking the link from the email. See

    Best regards,
  • Wed, Jul 3, 2019, 7:30 AM
    @Felipe Carasso Thanks for your information. Other than change this function, is there any other solution to stop auto confirm user? I'm new to Moodle, so please correct me if I'm wrong. smile
    In my setting, if I return false in can_confirm(), link doesn't work but in Site Administration->User works.
  • Thu, Jul 4, 2019, 2:09 AM
    @Nothy Wu I can't reproduce your problem. When I request a new account with this plug-in, the account remains "unconfirmed". If I list it under Administration -> Users, I see a link to confirm it. If I try to login using the unconfirmed account, Moodle tells me so and logs me in as Guest.
  • Fri, Jul 5, 2019, 7:48 AM
    @Nothy Wu I managed to reproduce the issue. I think that my phone is trying the link out to confirm it's a link and that Moodle doesn't check if there's a valid session before executing it. I'll look into it.
  • Fri, Jul 5, 2019, 9:58 AM
    I'm finding it working well in 3.6.4+. I have added some additional user fields, and these are showing up on the user account request form OK. How do I add them to the email to administrators? The idea is to allow prospective users to give more info than just their name and contact details to allow admins to decide whether or not to approve.
  • Fri, Jul 5, 2019, 10:35 AM
    @Rob Woof, the original message contains examples on how to see user fields. Check it out.

    @Shaun Sant, @Nothy Wu, version 1.4.2 should solve the issue.
  • Mon, Jul 8, 2019, 1:50 PM
    Thanks, @Felipe Carasso! The examples are very helpful. However, the fields I am concerned about are *additional* user fields, set up in the "Other fields" section of Site Administration->Users->Accounts->User profile fields ( I tried putting their 'shortname' in the email template using the form {$a->fieldshortname}, but without success. Is there a format I can use to access these fields?
  • Tue, Jul 9, 2019, 4:18 PM
    @Rob Woof, these fields are what the message calls 'custom fields'. You can't just pick one of those. You either add them all to the message, or you don't.
  • Tue, Jul 9, 2019, 4:19 PM
    Hi all, I released 1.4.3 with many fixes and some enhancement. Check out the description.

    Best regards,
  • Wed, Jul 10, 2019, 8:46 AM
    Aaah yes! I missed that bit. I should have read the text more thoroughly. I do want all of the custom fields, so I'm in business! Thanks for your patience!
  • Arkadiusz Malkowski
    Tue, Jul 23, 2019, 11:17 PM

    I found a problem in 1.4.3.

    Settings "Enable reCAPTCHA element" and "Notification strategy" do not work.

    It does not work because of plugin refers to database, table config_plugins and looking plugin name auth/emailadmin and not auth_emailadmin
  • Wed, Jul 24, 2019, 5:13 AM
    Hi Arkadiusz, thank you for the heads up. Would you mind to create an issue on Github if not already done? I'll look into it.

    Thank you,
Please login to post comments