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
Only Admin can create new accounts
#1
Hello

I am trying to only allow admin user to create new user accounts. I took a copy of register.php, and removed the line if logged in die. However when you create an account it doesn't work. No error, just fails. I have been looking through the User.php class as I guess the problem is in the userCakeAddUser() function or User class somewhere, but I can see where it might be.

I am a PHP novice, learning as I go!

Any suggestions appreciated!

Andy
  Reply


Messages In This Thread
Only Admin can create new accounts - by andy - 02-05-2016, 12:17 PM
Only Admin can create new accounts - by mudmin - 02-05-2016, 03:39 PM
Only Admin can create new accounts - by andy - 02-05-2016, 04:19 PM
Only Admin can create new accounts - by mudmin - 02-05-2016, 04:55 PM
Only Admin can create new accounts - by mudmin - 02-05-2016, 11:47 PM
Only Admin can create new accounts - by mudmin - 02-06-2016, 12:05 AM
Only Admin can create new accounts - by andy - 02-06-2016, 04:27 PM
Only Admin can create new accounts - by mudmin - 02-06-2016, 05:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)