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.
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).
Answers
How did you use Gdn_Auth_AuthSuccess_Handler? Show a piece of code
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
0 · Insightful Awesome LOL ·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.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Shouldn't it be Gdn_Trigger_AuthSuccess_Handler then?
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·@JoshH2 - any luck with this ... I just tried the EXACT same thing to no avail...
- Spam
- Abuse
0 · Insightful Awesome LOL ·