FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Proposed code change to add AUTO_LOGIN plugin hook
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Message by kmoradha is ignored  [reveal message]  [reveal all messages by kmoradha]  [stop ignoring this user] Go to next message
Re: Proposed code change to add AUTO_LOGIN plugin hook [message #184654 is a reply to message #184653] Tue, 14 January 2014 12:23 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3775
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Would it be possible to maybe use the AUTHENTICATE hook for this?

Quote:
Authenticate users against an external source like an LDAP directory. Example implementation: Email_login.plugin and Ldap.plugin.
Message by kmoradha is ignored  [reveal message]  [reveal all messages by kmoradha]  [stop ignoring this user] Go to previous messageGo to next message
Re: Proposed code change to add AUTO_LOGIN plugin hook [message #184656 is a reply to message #184654] Tue, 14 January 2014 12:39 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3775
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
OK, maybe not. AUTHENTICATE is in 'login.php.t' and you want to authenticate users without going through the login dialogue.

Maybe just add the following so clutch out all plugins and commit:
if (defined('plugins')) {

Message by kmoradha is ignored  [reveal message]  [reveal all messages by kmoradha]  [stop ignoring this user] Go to previous messageGo to next message
Re: Proposed code change to add AUTO_LOGIN plugin hook [message #184661 is a reply to message #184657] Tue, 14 January 2014 13:07 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3775
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
I cannot test right now, but it looks about right. If it works, go for it!

Please also update FUDforum 3.0.6 and Plugins (Available hooks).
Message by kmoradha is ignored  [reveal message]  [reveal all messages by kmoradha]  [stop ignoring this user] Go to previous message
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Proposed code change for potentially more unique sysid
Next Topic: How to use Search plugin hook
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Apr 25 04:41:37 EDT 2025

Total time taken to generate the page: 0.03283 seconds