The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
How to automatically login in new accounts?
#1
Wondering if someone more experienced (that's just about everyone) can point me in the right direction here.

For my needs I disabled email verification of new accounts. So when a new account is created it would be great to just automatically login that user, bypassing login.php.

I feel like this post put me on the right path with passing the username/pass via $_Post to login.php but I can't quite seem to get it to work.

Can anyone help me out with this?

Also, maybe this would would be a good thing to add as an option in UserSpice? This seems like something most people would want if they don't want email verification.

Thanks!!
  Reply
#2
You should be able to create a session without doing a check on the password. I would copy your join page to usersc, and modify the code for after it does all the jibber jabber, run the functions that login.php does if the password matches, such as new User, session creation, etc. Let me know if you need any more assistance.
  Reply
#3
That did it! Thank you for your help Brandin!
  Reply
#4
My pleasure! I am glad it made sense! Smile
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)