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

bart.hanssens’s picture

It seems to be an error in logintoboggan_tokens()

case 'validate-url':
          if (variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL) == USER_REGISTER_VISITORS) {
            $replacements[$original] = logintoboggan_eml_validate_url($account, $url_options);
          }

meaning that the validate-url will only be replaced when the user can register without admin approval

dan_metille’s picture

Any idea of what can fix this?

stomerfull’s picture

same problem

alex72rm’s picture

I solved removing the if statement; final code:

        case 'validate-url':
            $replacements[$original] = logintoboggan_eml_validate_url($account, $url_options);
          break;
aniebel’s picture

Issue summary: View changes

Is this something that's going to be implemented or is there a recommended solution (perhaps a different token) for this issue?

nattyweb’s picture

Is this still an issue or has it been solved?

ad_w00000’s picture

yes it works for me

many thanks