The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Disable login with the email address. Allow only the username - 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: Disable login with the email address. Allow only the username (/showthread.php?tid=1121) |
Disable login with the email address. Allow only the username - pmjcreations - 08-20-2018 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. RE: Disable login with the email address. Allow only the username - Brandin - 08-21-2018 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. RE: Disable login with the email address. Allow only the username - pmjcreations - 08-21-2018 Hello Brandin, Let me try, otherwise, I will leave it as it is. |