Add option to show email address on web display with one-time login or reset links

Created on 10 May 2021, about 3 years ago
Updated 9 October 2023, 9 months ago

Problem/Motivation

When the email_registration module is used the username is still displayed on the web UI (drupal default) when a one-time login link or password-reset link is used. It would be nice to have the option to change this to display the email address instead of the username.

Steps to reproduce

Proposed resolution

In another issue that is closed #1477934: Username instead of real name in [user:one-time-login-url] β†’ there is a link to an article, http://jimbir.ch/blog/no-more-usernames-setting-drupal-7-email-login with a comment including the suggestion to use a hook that is part of the email_registration module:

function hook_email_registration_name($edit, $account) {
    return $account->mail;
    }

This could be used in a custom module or might be added as a configuration option to the email_registration module.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada izmeez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @izmeez: Please test if this is fixed using the email_registration_username submodule!

    The proposed solution won't be implemented, as that would leak out the user's email address potentially in other places, like node author, etc.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
Production build 0.69.0 2024