Authentication: Email-based self-registration with admin confirmation

auth_emailadmin
Maintained by Picture of Felipe Carasso Felipe Carasso
Provides email-based self-registration with admin confirmation instead of user confirmation.
706 sites
882 downloads
55 fans

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

A "welcome" email is sent to the user when the admin clicks on the confirmation link or confirm the user through the administration menu.

Email body is customizable within the language file.

Based on default email-based self-registration module.

You can customize the e-mail messages by editing the language file or using Moodle's language editor.

Please read the INSTALL file carefully

Screenshots

Screenshot #0
Screenshot #1

Contributors

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

Comments RSS

Show comments
  • Picture of Felipe Carasso
    Sat, 15 Apr 2017, 7:22 PM
    Hi Nikhil,

    You're probably looking for custom profile fields. If I'm not mistaken, you can add them under the account profile configuration. You can use the search field in moodles to find it.

    Best regards,
    Felipe
  • Picture of Carol Bainbridge
    Sat, 22 Apr 2017, 10:20 AM
    Hello Felipe,

    Your plugin in wonderful, but I have a problem that I can't seem to fix.

    I edited the message that would be sent to a user after I confirm their registration. However, the email that is sent out is the same as it was before I changed it. I changed it in the auth_emailadmin.php file. I thought maybe I hadn't saved the changes, but nope. When I went back to look at the file, it was definitely changed. I tested it again. Same problem. The original message is sent to the user. So I thought that maybe the same wording is in another file somewhere, but after hours and hours of searching, I can't find anything.

    The beginning of the original says this: "Welcome to (My Organization)! Your account has been approved. If you have not already done so, please tell us how you discovered (My Organization)." It goes on for several paragraphs. I deleted all those paragraphs and wrote a more simple message that is more relevant to my users. But it doesn't get sent.

    Am I missing something somewhere? Everything else seems to be working well enough. Well, except the message to me after someone registers. The link in that one takes me to what is essentially a blank page. I don't care about that, though, since it's easy to go to my Moodle site and confirm the registration. The original wording going out to confirmed registrants, however, is embarrassing.

    Hope you can help me.
  • Picture of Felipe Carasso
    Sat, 22 Apr 2017, 11:02 AM
    Hi Carol,

    You probably need to clear all caches to have the changes detected by Moodle. Check the Install file. The link is in the description.

    Let me know if that doesn't solve it.

    Best regards,
    Felipe
  • Picture of Carol Bainbridge
    Sat, 22 Apr 2017, 2:20 PM
    Thank you, Felipe,

    That fixed it. I spent hours trying to figure that out! I did purge the cache before, having read the install file. But I must not have actually changed the email message before doing the purging. Derp.

    Thank you so much for your fast reply!
  • Picture of Nikhil Bhalwankar
    Wed, 3 May 2017, 8:06 PM
    Felipe Carasso ... Thanks for you input. I can customize the user profile page now.
  • Picture of Jorgi Amos
    Fri, 19 May 2017, 11:49 PM
    Hi,
    when you'll release the plugin for Moodle 3.3?
    Thanks
  • Picture of Jorgi Amos
    Sat, 20 May 2017, 1:06 AM
    Hi Felipe
    I'm testing last version of the plugin on Moodle 3.3, I installed it carefully following your INSTALL tutorial.
    Here is the problems along the procedure:

    1) after I registered an account I get a page that says: "Tried to send you an email but failed! Click for more info" and the info page is this: https://docs.moodle.org/33/en/error/auth_emailadmin/auth_emailadminnoemail
    That's bad for the user

    2) anyway the email arrives to the admin user but before the right message "Hi Moodle Admin ..." it says: "No admin found based on notification strategy. Please check auth_emailadmin configuration".

    3) I tried, as user, to login though the admin doesn't enable me and I get message "You need to confirm your account - An email is sent to you email address ...". That's bad for the user that will not receive any confirm email.

    4) Admin user enables user by clicking on the email link, that works good and the welcome email is sent to user but it's not translated in my language (already tried to purge cache)

    Hope this helps and you can help me, Thanks
  • Picture of Aaron Johnson
    Wed, 24 May 2017, 8:09 PM
    Hi Felipe,
    I was wondering if it would be possible to add someone to the list of admins who has limited access to the entire site. I'd like to have an assistant who would just check that the requested person is allowed on the site, but who wouldn't change content or create courses. Is it possible to have this plug-in email other roles, or would it work to create a custom "admin" role? Do you know which capaibilty settings have to be allowed ofr the role/user to show up in the admin list?
    Thanks
  • Picture of Felipe Carasso
    Wed, 24 May 2017, 11:37 PM
    Hi Aaron,

    It's not possible right now. The idea of pointing to a role instead of choosing the users right onto the plugin config is interesting. I'll consider it.

    Best regards,
    Felipe
  • Picture of Jessica V
    Wed, 12 Jul 2017, 9:00 PM
    Hello,

    Apologies if I missed an answer on this already - in manual accounts, I have set the 'password duration'. How do I do that as well for accounts created with email-based self-registration with admin confirmation?

    Thanks for your time!

    Jessica
  • Picture of Felipe Carasso
    Wed, 12 Jul 2017, 10:18 PM
    Hi Jessica,

    Neither self-registration plugins support that feature. But you could achieve it by adding another plugin, like https://moodle.org/plugins/view.php?plugin=auth_pwdexp

    Best regards,
    Felipe
  • Picture of Paulius Adm
    Wed, 16 Aug 2017, 1:31 PM
    How to remove this plugin?
  • Picture of D Riddel
    Thu, 31 Aug 2017, 10:28 AM
    Hi Felipe, first of all, thank you so much! This is really useful.

    I need to create two different registration paths, one for teachers and one for students. The teachers' registration need to be confirmed by the admin. The students do not.

    I was thinking of creating two links to /login/signup.php on the login page. Something like /login/signup.php?teacher=No

    How can I trigger this plugin for teachers, but not for students?
  • Picture of Felipe Carasso
    Fri, 1 Sep 2017, 12:49 PM
    Hi Riddel,

    I don't think you can do that. Moodle only allows you to select one auth plugin for self-registration. It doesn't feel straightforward to trick it into allowing a different registration path.

    What you could do is to plug a script into a mail server that would receive the registration request and look for a profile field saying if it's a student or a teacher then execute appropriate actions.

    You'll want to make it assign specific roles depending on the user type, else students would have the same rights as teachers.

    Hope that helps.
    Felipe
  • Picture of Felipe Carasso
    Fri, 1 Sep 2017, 12:59 PM
    If an auth plugin was able to call another plugin directly, I can imagine a special auth plugin that serves as router and role assigner based on some criteria like your user type... I can see some use to that...
1 2 3 4 5 6 7 8
Please login to post comments