Provides User (admin, researchers and technicians) and Group sign up functionality.
ACCOUNT_ACTIVATION_DAYSnumber of days before removing unactive accounts, by default 7
LOGIN_REDIRECT_URLdefault URL to redirect after succcesful user login (if any specified), by default '/admin/'
USERS_REGISTRATION_MODEcontrol level of new users registration.
OPENmeans that the account is enabled when the email is verifed.
RESTRICTEDimplies that once the email is verified the administrators must enable the account manually.
CLOSEDmeans that only the admins can create users (registration is disabled). By default
EMAIL_REGISTRATION_APPROVEemail which receives the notifications when a new user is registered and has validated its email; so its account is ready to be moderated (approve|delete).
Registration emails and templates can be easily customized following these steps:
# https://docs.djangoproject.com/en/dev/ref/templates/api/#the-template-dirs-setting TEMPLATE_DIRS = ('/home/vct/controller/templates/',) + TEMPLATE_DIRS
$> ls -R /home/vct/controller/templates/ templates/: registration templates/registration: registration_closed.html # information page when registration is closed activation_email_subject.txt # subject of email to inform the user that email needs validation activation_email.txt # content of email to inform the user that email needs validation activation_complete.html # the user has validated his/her email address, moderation pending registration_complete.html # user has completed the registration procedure
You can find examples on the controller repository.
Depending on the setting
USERS_REGISTRATION_MODE there are diferent user registration workflows:
Please verify that you registered for a Confine Testbed account with the username firstname.lastname@example.org by visiting: https://controller.community-lab.net/accounts/activate/248791mItC4USJARssP8S You must wait for this account to be approved before you can begin using it, please be patient. If you did not register for a CommunityLab account, please ignore this message, or contact CommunityLab Support <email@example.com>.
activation_complete.htmltemplate to tell the user about any further steps that should be taken for the new acount to be approved.
EMAIL_REGISTRATION_APPROVEsetting) notifying that a new registration requires their approval.
The registration web is disabled so any user cannot sign up. In this mode only testbed operators can create new users.
Bob Foo <firstname.lastname@example.org> has requested to join at 'Universitat Politecnica de Catalunya'. To accept the request, please visit: http://controller.confine-project.eu/admin/users/group/5/join_accept/?id=20 Best regards
Your Confine Research group join request has been confirmed. Please visit controller.confine-project.eu/admin to access your account.
Planet lab example:
- Your registration request has been received. - A mail was sent to the operations team, your application should be processed shortly. - Upon approval, the PI will receive an information e-mail - Please send a message to email@example.com if this request is not instructed within a few days. - Note: PI was already known
See also: Use cases: User registration