Override site's registration restriction on accepting invite We have a custom module that uses the invite module to send invitation to non users. Our site is set to allow registration only by administrator to avoid spam. When the invitees accept the invite they cannot register as its not allowed by the site. Is there a way to override registration restriction when invitees try to register?

We are looking into duplicating registration form on another route then routing the invitees to register there instead of default route.

Any other suggestions to handle this situation?
This is a bit hacky, but it could be done with the following:


  
  my_website.com/admin/config/people/accounts
  
  
  Who can register accounts? - Visitors
  
  Install https://www.drupal.org/project/redirect and add redirect /user/register to a basic page which says something like "Sorry, to register you need an invite. Please contact us to receive an invite."
  


Invited people can now log in to site but there is no way for people to access the user register page, as that page will redirect.