Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [gotze] AutoLogin plugin

Quote Reply
Re: [gotze] AutoLogin plugin In reply to
I think there are a couple of potential uses for this plugin, both assume that you have some kind of authentication scheme for users of your website (other than GForum) and that you give your users cookies.

Case 1) You are using MailArc and you have a user database that includes their e-mail addresses: When MailArc imports a message into GForum it creates a disabled user with the senders e-mail address (if a user with that e-mail address doesn't already exist). So if you give your users a cookie with their e-mail address when they log into your site the AutoLogin plugin will automatically log them into GForum using their e-mail address as the username. If they are disabled (ie it is their first visit to GForum other than posting to your maillist) they will be enabled and an arbitrary password set. If they do not have a GForum account (ie they have not yet posted a message to one of your maillists) an account will be created for them using their e-mail cookie as the username.

Case 2) You aren't using MailArc and you have a user database that includes a field that you want to use as their GForum username: Give your users a cookie with the field that you want to use as their GForum username when they log into your website. When your users visit GForum AutoLogin will create an account for them using the username cookie, if it is their first visit, or just log them in if it is a return visit. So it is essentially an easy way to authenticate your users into GForum using an existing authentication scheme (assuming you use cookies or can add cookies to your existing scheme).

In either case you would want to modify the GForum login template so that they log into your website, not directly into GForum. OR change the header "Login" link so that it points at a login page for your website.

The only concern I can think of is how to handle it when users change their e-mail address. As is, a new account would be created for them in GForum with each email change. No effort is made to track the change so defunct users will accumulate as users change their email addresses. I'm not sure how big a problem this is, but doesn't seem very elegant. At mininum users would need to understand that they would have to set up their profiles all over again everytime they changed their email address.

Hope that helps.
Michael Coyne
seaturtle.org
Subject Author Views Date
Thread AutoLogin plugin mcoyne 9238 May 29, 2002, 1:53 PM
Thread Re: [mcoyne] AutoLogin plugin
mcoyne 9030 Jun 1, 2002, 12:21 PM
Thread Re: [mcoyne] AutoLogin plugin
gotze 8988 Jun 2, 2002, 5:13 AM
Thread Re: [gotze] AutoLogin plugin
mcoyne 8968 Jun 2, 2002, 8:24 AM
Thread Re: [mcoyne] AutoLogin plugin
VITAS 8991 Jun 21, 2002, 5:18 AM
Thread Re: [VITAS] AutoLogin plugin
mcoyne 8930 Jun 22, 2002, 7:22 AM
Thread Re: [mcoyne] AutoLogin plugin
lpa 8900 Jul 13, 2002, 8:48 AM
Thread Re: [lpa] AutoLogin plugin
mcoyne 8883 Jul 30, 2002, 8:20 AM
Thread Re: [mcoyne] AutoLogin plugin
hennagaijin 8776 Sep 14, 2002, 3:49 AM
Thread Re: [hennagaijin] AutoLogin plugin
mcoyne 8614 Nov 13, 2002, 4:35 PM
Post Re: [mcoyne] AutoLogin plugin
bob c3 8493 Nov 24, 2002, 8:01 AM
Thread Re: [mcoyne] AutoLogin plugin
bfuj 8584 Nov 13, 2002, 3:19 PM
Post Re: [bfuj] AutoLogin plugin
mcoyne 8565 Nov 13, 2002, 4:30 PM