Problem/Motivation

For as long as I can remember, you get this error message, if you generate a one-time login link with Drush (for example /user/reset/1/1666288377/Wyf8bv[...]06_15sWg/login) and open it, if you are already logged in:

Access denied

You are not authorized to access this page

I know, we have all gotten used to this and accepted it (also me) but a few minutes ago, it dawned on me: It doesn't have to be like that. So hopefully the message can be updated from the current error message, to something meaningful and positive.

You can also generate a one-time login link via /user/password, but I am not sure if that link logs you out, and forwards to reset password form?

So this might be mainly a Drush issue, but since so many of us use Drush, many of us probably encounter this again and again, warranting action, in my opinion.

Steps to reproduce

  1. Log in
  2. Generate a one-time login link with Drush, open it and see the error message

Proposed resolution

Show a friendly and welcoming message, in stead of an error, for example:

Welcome back

You just used a one-time login link, but you were already logged in.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

ressa created an issue. See original summary.

ressa’s picture

Issue summary: View changes

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

alberto56’s picture

This has bothered me forever; I created a module as a workaround, it is at https://www.drupal.org/project/uli_custom_workflow

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.