User login

Replace access denied on user/register for logged-in users with a redirect

Searched words: 
drupal redirect logged in users on user/register access denied drupal redirect on access denied

Best resource on this that I've found:

logged-in user + /user/register -> access denied
http://drupal.org/node/118498

There's no reason for this-- even user #1 gets access denied here, and users who could go to admin/user/user/create -- access denied might be technically correct, you can't re-register, but it's nonsensical and annoying.

This needs to be a core fix or at least a module. Giving logged in users access denied on the registration page is just silly. We the Drupal using community need redirect options, or at least redirection to the user's profile page (but preferably an option to do the home page or something else).

My particular use case is I've set up a workflow (or a redirect in login toboggan) to immediately take instantly logged-in users (a logintoboggan option) to

Anyone who follows that link twice gets denied.

The best solution is the workflow registration I really want-- let people post content or comments and log in or register at the same time.

A comprehensive solution for this (not losing data if switching between logging in or registering, or a couple failed attemps), Agaric will give money to get done or do for money.

Resolution

Comments

agaric.com/note/replace-acces

agaric.com/note/replace-access-denied-user/register-logged-users-redirect

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.