[Rt-devel] PATCH: User AutoCreation at login (UNTESTED)

Jim Meyer purp at acm.org
Fri Apr 7 23:39:31 EDT 2006


Hello!

Finally, here's a patch for the autohandler which enables
$RT::AutoCreateAuthedUsers; if that's set and a user has no RT account
but can auth successfully their RT account is autocreated, using
LoadOrCreate() to take advantage of the defaults in
$RT::AutoCreateUserInfo.

Three things:

1. It has an ugly hack to get the name into the CurrentUser object so
that external auth methods can take advantage of that info. I'm not
happy with this, but it's there for discussion (and expediency, in my
case). I'd really like guidance/suggestions on how to better
accomplish this.

2. Having to call LoadOrCreate() when I know they're not actually
going to be loadable really makes me want to drive the defaults in
$RT::AutoCreateUserInfo all the way into RT::User::Create(). Thoughts?

3. Have a nice weekend!

--j

p.s. I actually attached this one, Reed! See, I can learn! ;]
--
Jim Meyer, Geek at Large                                    purp at acm.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autohandler.autocreate.patch
Type: application/octet-stream
Size: 1980 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20060407/3785a468/autohandler.autocreate.obj


More information about the Rt-devel mailing list