On the login screen, the user has to enter their username and password. I also need them to enter a group code (because everything has to be complicated).

How would I go about this?

Comments

vm’s picture

investigate api.drupal.org with reference to hook_form_alter which may suit the need.

wildmtsky’s picture

Couldn't you just use a profile or does the group change at each login?

sm5574’s picture

With a group code, we could delete the code to deny access to an entire group at once. Would a profile allow the same ability?

Sorry, but I have a LOT of trouble navigating the Drupal documentation. It's so scattered, like it's all just reference material. I think linearly.

maozet’s picture

Profile just adds fields to the user profile. Like a nick name for example.
You should write a module and implement hook_form_alter.
This gives you the option to manipulate a form, ie: add/remove fields, change titles...etc

sm5574’s picture

Thanks for the suggestions, everybody. I'll try the hook thing and see if I can get it to do what I need.