Closed (fixed)
Project:
LoginToboggan
Version:
6.x-1.6
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2010 at 19:57 UTC
Updated:
30 Apr 2010 at 17:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
hunmonk commentedthat role is hidden because it ideally needs to be managed by LT if it's set at all. IMO if you need to recover that role for regular usage, you should remove it from the pre-auth setting on the LT settings page first.
can you give me another use case that would necessitate a different approach?
Comment #2
nonzero commentedI used the non-authenticated role feature once and later decided to disable it because spam-bots were getting through. I thought simply unchecking "Set password" would do it, so I did that. Months later, I found out I couldn't assign that "non-authenticated role" to new (or old) users. I had completely forgotten about the LT setting by this time and spent 2 hours on Eclipse's debugger to discover that LT was removing the role from the user edit form.
An alternative solution would be to have an item in the dropdown called "disabled". I found out the hard way that selecting "authenticated user" was essentially a disable. Or provide a bit more help text near the dropdown along the lines of, "To disable this feature, select 'authenticated user'," but this is a bit counterintuitive.
Comment #3
hunmonk commentedit was a real pain to fix this, as the fix was different in every active branch, but it's done ;)
attached is the patch that was used on the 6.x branch. the fix means that if either the 'Set password' checkbox is unchecked, or the pre-auth role is set to the auth user, then LT's automatic disabling of the pre-auth role checkbox is skipped. i've also addressed this in the user administration screen.