Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the registration messages, the Drupal core new user messages is like
Thank you for registering at [site:name]. You may now log in by clicking this link ...
After setting your password, you will be able to log in at [site:login-url] in the future using:
username: [user:name]
password: Your password
And shoud be:
username: [user:mail] (also you can use: [user:name])
I tired to use hook_mail_alter() but the [user:name] tag is already replaced by the username.
I don't know how to "catch" [user:name] in the message before it is being replaced. If someone helps with an idea I can make the patch.
Comment | File | Size | Author |
---|---|---|---|
#3 | README.txt | 1.7 KB | greggles |
Comments
Comment #1
gregglesThe project page already mentions this, but it wasn't super clear. I've added some headings and reworded things a bit to make it more clear.
We should probably also have a README.txt with the project that mentions this.
Comment #2
gregglesWe should also mention (as the project page does) that you can grant people the ability to change username per #1563190: Optional field for user name.
Comment #3
gregglesHere's a file for review.
Also, I merged #1546054: Add README.txt idea to fix confusing validation message into this.
Comment #4
ptmkenny CreditAttribution: ptmkenny commentedThe README.TXT looks good; one thing I would suggest is to mention that Email Registration plays well with the RealName module, which can be a big help in some use cases. I use Email Registration and RealName together on my site; this allows users to log in with their e-mail address but specify the name that appears in posts (a field on the user profile) and have that displayed instead of the randomly generated username provided by Email Registration.
Comment #5
gregglesNow committed - http://drupalcode.org/project/email_registration.git/commit/b7f9d64
Not sure if this should be ported or not.
@ptmkenny - interesting idea. I've added it to the project page for now.
Comment #6
gregglesIndeed it was needed. I tweaked the paths for 6.x vs. 7.x and committed http://drupalcode.org/project/email_registration.git/commit/909c21a