I've a site setup in Drupal 7 where every user who is not authorized is shown a username/password page through Logintoboggan Module.
All went good, until a unique requirement came.
First Scenario:-
I need to have a universal login page which will only have a password field. So whenever a user comes to the site and is not logged in, he will be shown a page with only Password Entry, where he will enter a password and will enter the site. The role of this user would be Authenticated User. (I guess this can be done if I hide the username field somehow and pass a hidden username field along with the form )
Second Scenario:-
Whenever user, who is not logged in, wants to log in as an admin, he/she will enter the URL as www.site.com/admin and should be shown normal authentication page, which will have username/password field. One can then, enter the credentials and enter the site as an admin (normally, as we are doing now with every page).
Hence, I need two login page forms; one would have only password field and other would have normal username/pwd fields at a specific URL.
I'd be very thankful if you can help me in any regard.
Thanks.