Closed (fixed)
Project:
Login one time
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2010 at 16:46 UTC
Updated:
4 Jan 2011 at 15:40 UTC
I think it would be great to have token support for this module (if possible). I send out emails to users via Views Bulk Operations/Views Send and think it would be very handy to include a [login-one-time] token that would generate the link. Any chance this could be supported?
Comments
Comment #1
danielb commentedI've never done this before, so let me just think out loud here...
Would that be sufficient?
I think I'll have to fix #852800: Compatibility with realname module first in case it changes things too much.
Comment #2
danielb commentedI've added that. There is more that could be done like adding tokens to go to a specific page, etc... but I don't want to go nuts with it at this stage.
Comment #3
jeff.k commentedThanks! I will be testing it later this week.
Comment #4
jeff.k commentedWhen enabled it seems to throw an error
warning: Invalid argument supplied for foreach() in ....\sites\all\modules\token\token.module on line 385.
In looking at http://drupal.org/handbook/modules/token your code needs to be slightly altered
$tokens['login-one-time'] = t('Login one time link (Default path)');
should be
$tokens['user']['login-one-time'] = t('Login one time link (Default path)');
Comment #5
danielb commentedoh ok, woops
Comment #6
danielb commentedOK updated.
Comment #7
jeff.k commentedThanks for the quick turnaround!