NAL-i5K / tripal_chado_datasets

Provides an admin layer and forms for users to submit organisms and analysis into Chado
0 stars 0 forks source link

module shouldnt use its own account creation form #39

Open bradfordcondon opened 6 years ago

bradfordcondon commented 6 years ago

I'm hesitant to release this module at 1.0 while register/project-dataset/account is in use. The data isnt used so I guess administrators will create drupal accounts for the user manually, based on the email they get?

A more Drupal way to do this is to have users register an account and perhaps select teh role they want (curator, project leader for example): see https://www.drupal.org/project/registration_role_with_approval

You can certainly require admin approval before account creation either way, which i think is the purpose of this form.

Here's how to add extra questions to the account registration form (from https://drupal.stackexchange.com/questions/59079/adding-fields-to-user-registration-form):

Go to Config > People > Account Settings > Manage Fields

Then, you can add fields to user profiles just as you would add fields to any content type. When you add fields here, there is a checkbox to "Display on user registration form" if you want the field to be part of the user's registration process.

bradfordcondon commented 6 years ago

Ideas for setup: https://www.optasy.com/blog/how-create-role-specific-user-registration-forms-drupal

with some combination of these three modules, you would either have users request the roles they want (ie contributor, moderator, apollo access) or build separate registration forms for each role.

What I'm not sure about is if we woul be able to have a user be a moderator of all things related to a single species, for example. This to me sounds like a custom chado module. You definitely wouldn't want to have to create hundreds of permissions (1 for each organism) manually...

Roles we would want defined:

inspecting how Apollo itself sets up its permissons might be interesting: see https://genomearchitect.readthedocs.io/en/latest/Permissions.html?highlight=users

bradfordcondon commented 6 years ago

screen shot 2018-10-31 at 4 30 48 pm

http://167.99.232.220/user/register

I've added institution as a simple (required) text field for the user registration. As far as this module is concerned, this plus tripal_HQ fulfills all needs.