Active
Project:
LoginToboggan
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 17:05 UTC
Updated:
19 Oct 2017 at 05:08 UTC
Jump to comment: Most recent
This might be a duplicate of http://drupal.org/node/1491868, not sure.
I've set my installation up so users can select their password upon registration, but an administrator has to approve the account creation.
I've created an advanced action to send email, using the following text:
Username: [user:field_first_name] [user:field_last_name]
To approve: [user:validate-url]I've created a 'Send new user approval email' trigger to send that mail.
When the mail comes through to the administrator though, the validate-url field is not expanding:
Username: Test Person
To approve: [user:validate-url]
I'm assuming the 'validate-url' is the right token to be using to allow the administrator to approve the account - if it's something else, please let me know, and close this ticket!
Comments
Comment #1
bart.hanssens commentedIt seems to be an error in logintoboggan_tokens()
meaning that the validate-url will only be replaced when the user can register without admin approval
Comment #2
dan_metille commentedAny idea of what can fix this?
Comment #3
stomerfull commentedsame problem
Comment #4
alex72rm commentedI solved removing the if statement; final code:
Comment #5
aniebel commentedIs this something that's going to be implemented or is there a recommended solution (perhaps a different token) for this issue?
Comment #6
nattyweb commentedIs this still an issue or has it been solved?
Comment #7
ad_w00000 commentedyes it works for me
many thanks