Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Plugin event Gdn_Auth_AuthSuccess_Handler?

edited August 2011 in Vanilla 2.0 - 2.8
Hello, I'm trying to perform an action after the user has been successfully signed in. I've tried using Gdn_Auth_AuthSuccess_Handler with no luck. Should I be looking elsewhere?
Thanks.

Answers

  • @JoshH2
    How did you use Gdn_Auth_AuthSuccess_Handler? Show a piece of code

    There was an error rendering this rich post.

  • Thanks for the reply,

    I used it as follows (Obviously the pluginInfo etc was above this.

    class handshakePlugin extends Gdn_Plugin {
    public function Gdn_Auth_AuthSuccess_Handler($Sender) {
    setcookie('v_hs_h', 'hash_here', time()+1800);
    }
    }

    I want to set a cookie when the user is signed in for use with handshake with another app. I know there is proxy connect but I want Vanilla to be the master not the slave.

    The plugin works (i tried hooking onto other events and that was fine).

    Thanks.
  • lucluc ✭✭
    The AuthSuccess event is in a function called Trigger.
    Shouldn't it be Gdn_Trigger_AuthSuccess_Handler then?
  • Hi Luc, a good shout. Sadly, I've tried it and it behaves no differently.
  • Anyone else have any ideas?
  • @JoshH2 - any luck with this ... I just tried the EXACT same thing to no avail...

Sign In or Register to comment.