How do enable self-registration again? I'm an admin, but not primary admin.
From the documentation (which I wish I had read before flipping the switch! )
The Email-based self-registration authentication plugin must be enabled to allow users who previously self-registered to login with that plugin.
Re: Locked out - need to enable email-based self-registration
The primary admin is probably a “manual” user so will still be able to log in. Ask them to edit your profile and change the authentication method to manual and you should be able to log in too.
Then you’ll need to do the same for all current users. If you have lots of users and have access to the backend database, you can do this through a sql query but if not, you can also do it using the bulk user upload functionality. Download your users, add an “auth” column (should be manual for all) and upload them again. Set the options in the upload to “update current users only”. I can you give detailed instructions if you need it.
Re: Locked out - need to enable email-based self-registration
If after I get access can I solve the problem by enabling self-registration again? At this point I'd prefer that than to cause further chaos by editing the bulk user file. We have 5,000+ accounts.
Thanks again!
Re: Locked out - need to enable email-based self-registration
Re: Locked out - need to enable email-based self-registration
If you can access config.php file and edit, one could possibly turn on auth via email by adding a line to config.php. If you have other authentications, like LDAP/other, you should include those as well or you'll then lock those users out.
Manual accounts are always on.
Students using mobile devices and the Moodle App? then one would also need 'webservices' added to the line.
Lines added just *above* the comment at the end of the config.php file - not below that comment. No need to restart services, just hit site with browser.
$CFG->auth="email,webservice";
$CFG->authloginviaemail="1";
That then gets you in where you could navigate to the GUI area for turning on and set that there.
After everything 'back to normal', comment out the lines added by placing // in front of them.
'SoS', Ken
Follow up ...
There is also an enrolment setting for versions 3.7,3.6,3.5,and 3.4. Think for those the following is default:
$CFG->enrol_plugins_enabled="manual,guest,self,cohort";
So 'locked out' could be two fold ... auth + enrol method depending.
'spirit of sharing', Ken
Re: Locked out - need to enable email-based self-registration
Thank you again, everybody, for your assistance.
Re: Locked out - need to enable email-based self-registration
Well, not really 'bizarre' if one is allowing password change.
A user who self registered via email based would be sent a confirmation message before change would be made. If your users were auth via LDAP, then change of password would involve the LDAP server.
As far as 2 places ... site level and course level?
Just think how interesting this will become with 2 factor authentications and/or biometric as well so enjoy the current while you can!
'SoS', Ken