Closed (fixed)
Project:
Login one time
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2011 at 04:46 UTC
Updated:
27 Jun 2011 at 02:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
danielb commentedIt's a good idea but I don't have time to develop this at the moment. Patches welcome.
Comment #2
danielb commentedFelt a bit motivated and made a quick patch for D7, because that's the branch I was working in.
Will need to backport and test, etc..
Comment #3
danielb commented^ I notice I forgot to take the $form_id param out of login_one_time_form_user_admin_settings_alter() in that patch.
Here is a D6 patch, untested
Comment #4
danielb commentedI've committed these patches to git and they'll appear in a dev release.
Comment #5
danielb commentedI've had a quick go at it, haven't found any problems so far. I'll leave it in the dev release in case anyone has anything else to say about it. But these will be included in future releases.
Comment #6
itserich commentedHello danielb
Thank you. I can't tell for certain where this is configured. I don't see an option under User Management - Login one time.
Under User Managmenet - Permission - there is "use link to login one time".
Several roles are already populated, I can't recall if this was set with the prior version.
If this is how it is configured, does it only allow links to be sent out to people, where each role belonging to a user is allowed to use it? For instance, an Admin may also have the Authenticated role.
Thank you.
Comment #7
danielb commentedYes that's it. A user must have a user role with the "use link to login one time" to be able to get the email sent to them, and also to use the link (in case the permission was removed after the email sent out).
The module automatically gives the permission to all roles when you install or upgrade to this version to keep behaviour consistent with previous versions by default.
Comment #8
itserich commentedHello -
Thanks, I tried it and think it works as designed.
When a user has multiple roles, if one of the roles is enabled the link works. When none of the roles are enabled, there is an error message.
My main concern is not allowing anyone to log in with the link for the user of Admin role. It seems like it would be easier to administer to disable the login link for any user with a checked Role. One example why is every user receives the Authenticated role by Drupal default, I think, so the only way to disable the link with the current permission system for any user is to disable it for Authenticated Roles.
Though, alternatively, it would not be too hard to assign every user a role such as Login One Time so that everyone but Admin could use it, but it would mean every current user has to be assigned a new role to make it work.
One other thing, when the module is enabled, only some of the roles were enabled, not all. I think it might be only for those roles which already have been sent a one time link, but not sure.
Thanks.