The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login callback?
#1
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!
  Reply
#2
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.
  Reply
#3
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"?
  Reply
#4
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.
  Reply
#5
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 Smile
  Reply
#6
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!
  Reply
#7
I've paid for software and not gotten as fast of responses as what I get here Smile
  Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)