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
Disable login with the email address. Allow only the username
#1
Hello all,

I am running a website where I have disabled Registration.

Currently, any created user by admin can log in with the user's username and email address.

I wanted to know how can I restrict access with only username and not with the registered email address.
  Reply
#2
You would need to modify the User.php class. It is very touchy so be careful and test heavily.

In particular, you will need to modify the find public function to use username always, and not email. That should be an easy change, but lots could go wrong, be careful.

Brandin.
  Reply
#3
Hello Brandin,

Let me try, otherwise, I will leave it as it is.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)