I've created a form that posts the username, email and password from my existing webapplication to Drupal. (Users see a button and a form with hidden fields "click here to enjoy forums and blogs". When the user clicks, automatically a Drupal account is created with the same username and password as the existing application). So far so good.
For consistency reasons, I want to avoid that users can register on Drupal without registering on my main site. Is there a way to hide all links to the registration page without restricting the registration form to administrators only (because with this setting, the form has no access to create a Drupal account).
I think the ideal solution would be: Redirect the Drupal registration form page to the registration form of my main application (how?). How can I ensure that the "secret form" will still be able to post. Security is not my main concern, it's more about making Drupal only registration as invisible as possible.
Comments
Disable user registrations?
Have you tried disabling user registrations (admin/user/settings)? You can set it to admin creation only and then check if your script can still add users to Drupal. If this works, all people will see is the login form without the "create account" option.
______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.
______________________________________________________________________________________________________
Disable user registrations results in insufficient access rights
No, that doesn't work. I get an "insufficient" access rights message. (which is great, otherwise there would be a security issue). All other suggestions are very welcome.
I'd like to be able to do
I'd like to be able to do this too....
Edit: Can hide with CSS see http://drupal.org/node/47382