The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Login callback? - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Login callback? (/showthread.php?tid=670) |
Login callback? - haydentech - 08-15-2017 Is there some kind of callback I can set that will trigger after login? I want to set certain cookies and make certain database calls after a successful login. Where/how would I do this logic? Thanks in advance! Login callback? - mudmin - 08-15-2017 Sure. The best place to do this is in the file usersc/scripts/custom_login_script.php You should be able to do whatever you want in there and our updates won't break anything. Login callback? - haydentech - 08-15-2017 Awesome, that was exactly what I'm looking for! Have I missed the complete documentation somewhere? I see the Documentation link on the website, but it just has little tidbits of info, and it claims "This page is intended to be a supplement to existing forms of documentation". Where are "the existing forms of documentation"? Login callback? - karsen - 08-15-2017 Unfortunately the documentation is out of date and incomplete. Userspice moved forward so fast that it quickly outpaced all its documentation. I'm pretty sure all the class pages haven't needed updates, so only the implementation pages are old. If you have any questions on anything just ask away, many of us check in almost daily and can answer any questions you have or problems you've run into. Login callback? - mudmin - 08-15-2017 I agree with @Karsen. We're in this tic-tock cycle. Right after 4.3 is released we'll go through and do a redocumentation. Probably in written form. Right now the forums are your best bet. At this point, it's kind of nice when someone says "it would be nice if you had..." and it's already there Login callback? - haydentech - 08-16-2017 While the lack of docs is frustrating, I wanted to say that on this forum, I've received some of the quickest responses to questions of any open source project I've worked with. If you don't mind the questions, I'll keep asking them. :-) Thanks for all your help! Login callback? - mudmin - 08-18-2017 I've paid for software and not gotten as fast of responses as what I get here |