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?
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.
Thanks.
Tagged:
0
Answers
How did you use Gdn_Auth_AuthSuccess_Handler? Show a piece of code
There was an error rendering this rich post.
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.
Shouldn't it be Gdn_Trigger_AuthSuccess_Handler then?
@JoshH2 - any luck with this ... I just tried the EXACT same thing to no avail...