You can put your code into the "updateUser" function in your auth
plugin. If you are using the AutoAuthenticate hook, you'll need to call
that function specifically from that hook both when you create users and
when you log them in. If you want an example of how to do it, you can
look at my plugin:
http://bugzilla.wikipedia.org/show_bug.cgi?id=814
V/r,
Ryan Lane
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-
bounces(a)Wikimedia.org] On Behalf Of Dan Davis
Sent: Friday, December 08, 2006 10:28 AM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Additional User Attributes
OK, I know that I've seen information on doing what I am about to ask,
but,
for the life of me, I can't seem to locate any of it!
I handle authentication of users through a corporate SSO portal. This
portal
supplies me with information about the user beyond what is normally
stored
in the MW database. What I'd like to do is define
additional fields in
the
MySQL database to store some of this info. The user
need not ever see
it,
so
there should be no reason to update the Preferences page, or any other
page,
for that matter.
I think I can handle updating the MySQL table, but what I need
guidance
on,
is (1) how do Iupdate these new fields via my authentication plugin?
And,
(2) how do I access these fields from other pages?
Specifically, I
want to
access them from Special:Listusers. I'm sure I can
update the SQL
statement
in getSQL(), but not sure where to edit the code to retrieve the new
field
from the result.
Any help would be appreciated.
Dan
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l