This is a follow-on to #2477641: One-time login link failure messages are misleading because they are not marked as errors with an additional D8 fix that was unearthed during back-porting the patch to D7.

Problem/Motivation

If a user clicks on a "one time login link" that has expired, is invalid, or that cannot be processed because another user is already signed in, the errors displayed are shown as standard messages (e.g. appearing in green with a checkmark, depending on the theme), signifying success rather than failure.

Proposed resolution

If a one-time login link cannot be used (for any reason), this should be flagged as either a 'warning' or an 'error' instead.

Remaining tasks

Need somebody to push into core

User interface changes

Users will be presented with an 'error' or 'warning' message instead of a 'success' message if a one-time login link is unsuccessful.

API changes

None.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because this does not impair functionality and is little more than a minor UX repair
Issue priority Minor
Unfrozen changes Unfrozen because it only changes the semantics of the messages displayed, and should not cause any compatability issues
Prioritized changes The main goal of this issue is usability.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markpavlitski created an issue. See original summary.

markpavlitski’s picture

markpavlitski’s picture

Status: Active » Needs review
FileSize
1.25 KB

The attached D8 patch addresses the two additional messages fixed in #2477641: One-time login link failure messages are misleading because they are not marked as errors, comments #37 and #40.

sgurlt’s picture

Assigned: Unassigned » sgurlt

Checking this now.

sgurlt’s picture

Assigned: sgurlt » Unassigned
Status: Needs review » Reviewed & tested by the community

Works as expected :)

markpavlitski’s picture

Thanks :)

Would be good to see this one get in!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

@sg88 screenshots would have been nice to prove that you've tested it - if you had done that I would have given you commit credit too.

Committed 136b01c and pushed to 8.0.x. Thanks!

  • alexpott committed 136b01c on 8.0.x
    Issue #2561685 by markpavlitski: Follow up to: One-time login link...

Status: Fixed » Needs work

The last submitted patch, 3: drupal-2561685-3-D8.patch, failed testing.

markpavlitski’s picture

Status: Needs work » Fixed

Already committed. Marking back as fixed.

Status: Fixed » Closed (fixed)

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