🕸Fergus Duniho wrote on Sat, Oct 28, 2017 12:54 AM UTC:
I rewrote the pass_okay function to return the value of login, and it worked. I also modified login with better code from pass_okay where appropriate. So, logging in should now be handled by a single function, which is login in the loginfuncs.php file. This function combines the best code from the three previous login routines, it always updates the LastLogin time when someone logs in, and it keeps track of the last IP address used by each person who logs in.
I rewrote the pass_okay function to return the value of login, and it worked. I also modified login with better code from pass_okay where appropriate. So, logging in should now be handled by a single function, which is login in the loginfuncs.php file. This function combines the best code from the three previous login routines, it always updates the LastLogin time when someone logs in, and it keeps track of the last IP address used by each person who logs in.