When creating a login destination with a trigger of "One-time login link," the trigger is incorrectly identified as "Login" due to a $_SESSION parameter that is not present. I recommend a new way of detecting the one-time login link trigger that is in line with the Drupal 8 way of doing things. I'll post my patch in the next comment.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pjohn created an issue. See original summary.

pjohn’s picture

Here's the patch I propose for this. Can someone please review it?

ddrozdik’s picture

Status: Active » Reviewed & tested by the community

Hi @pjohn,

Your patch looks good. In case you would like to get a credit after applying the patch please create a patch in the correct format. Refer this link for details.

Thanks.

ddrozdik’s picture

Status: Reviewed & tested by the community » Fixed

Nevermind, I see that fix has been already added in this issue https://www.drupal.org/project/login_destination/issues/2852881.

Closing, since this issue is fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.