Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [csbear] Authentication module in GForum..

Quote Reply
Re: [csbear] Authentication module in GForum.. In reply to
Hi,

Yes, using a plugin is definitely recommended over directly editing the modules. You'll find a Wizard in the admin panel Plugin menu that can create a plugin "shell" code for you. As for overriding the various authentication subroutines, this is quite easy - the authentication plugin "hooks" are all named the same as the subroutine. So, for example, if you wanted to add to or replace the "auth_valid_user" code, you would set up a "auth_valid_user" plugin hook. If you set up a PRE hook, your plugin will be called before auth_valid_user, and a post hook would be called after. The authentication functions themselves generally have some documentation on what is passed into them, what they do, and what they return in GForum/Authenticate.pm above each subroutine.

Try creating a plugin through the Wizard - the generated code has some comments that may also be helpful.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Authentication module in GForum.. csbear 2437 Apr 13, 2003, 7:47 PM
Thread Re: [csbear] Authentication module in GForum..
Jagerman 2359 Apr 13, 2003, 9:03 PM
Post Re: [Jagerman] Authentication module in GForum..
csbear 2325 Apr 14, 2003, 8:53 PM