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.
Hi
In some use cases (as mine now) you want to validate that the mail entered in login form is ok and you want to force login only by email, this can be accomplished just with a custom validate handler that validates the email but email_registration doesn't keep this data.
I'm attaching a really little patch for keeping the email address in the validation phase.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1291908-keep_email_for_validate-6.patch | 726 bytes | greggles |
#2 | 1291908-keep_email_for_validate-2.patch | 756 bytes | pcambra |
#1 | 1291908-keep_email_for_validate-1.patch | 720 bytes | pcambra |
Comments
Comment #1
pcambraComment #2
pcambraIt should be done before the user check.
Comment #3
andypostGreat but this should be configurable or not? this adds an option #583152-13: email confirmation option
Comment #4
gregglesMakes sense to me.
Comment #6
gregglesreroll.
Comment #7
gregglesNow committed to 7.x - http://drupalcode.org/project/email_registration.git/commit/ceac58a
Comment #8
gregglesNeeded a slight re-roll but seems to work http://drupalcode.org/project/email_registration.git/commit/944b4c5