By sm5574 on
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?
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
=-=
investigate api.drupal.org with reference to hook_form_alter which may suit the need.
wouldn't profile work?
Couldn't you just use a profile or does the group change at each login?
Profile
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.
Profile wont do the job
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
Thanks!
Thanks for the suggestions, everybody. I'll try the hook thing and see if I can get it to do what I need.