This is a spinoff issue from #892950: (Tests needed) No welcome mail sent to new users after site administrator approval.
The mail a newly registered user gets after his account has been activated by a site admin contains the wrong link. The user cannot log in and set his password with this link.
The patch solves this issue.
The issue is critical, because newly registered users would never be able to access the site.
| Comment | File | Size | Author |
|---|---|---|---|
| user-mail-token-1.patch | 641 bytes | reglogge |
Comments
Comment #1
aaronbaumanThis looks RTBC to me, but probably best to get another pair of eyes on it.
Comment #2
Pls commentedLooks and works good.
Comment #3
aspilicious commentedI think this is correct. I alrdy discovered this while translating drupal alpha 6 on localize.drupal.org. But didn't pay a lot of attention to it. :s
Comment #4
webchickLOL well, that's a problem. :) Too bad I can't think of a way to write a test for this...
Committed to HEAD!
Comment #5
yesct commentedIs there a tag for human-test-impossible-to-code ?
would be useful for D8, yes?
I'll open an issue suggesting one if there is not already a tag.
Comment #6
sunThis can be tested. All outgoing mails are captured by SimpleTest (instead of sent) and we are able to read out (parse) the contained link(s) from the mail and use them to check whether we can complete a user registration.
Comment #7
webchickFixing title.
Comment #8
naxoc commentedI'll write a test today at the drupalcon code sprint
Comment #9
reglogge commented#8: You could extend the test that was added here #892950: (Tests needed) No welcome mail sent to new users after site administrator approval for that. These tests already check for the mail being sent, but not for the content of the mail's body field.
Comment #10
reglogge commentedTests included in #892950: (Tests needed) No welcome mail sent to new users after site administrator approval.