function checkLogin($username, $password) { //Clean strings for security username == secureStrings($username); password == secureStrings($password); //Salt password $password = saltPassword($password); //Check if user exists if (checkIfUserExists($username, $password) == 'true') { //Check if approved if (checkIfApproved($username, $password) == 'true') { //Create Session createSession($username, $password); } else { print 'napproved'; } } else { print 'Incorrect'; } }
function checkLogin($username, $password) { //Clean strings for security $username = secureStrings($username); $password = secureStrings($password); //echo $username ; //echo $password; //Salt password $password = saltPassword($password); //Check if user exists //echo " checkLogin".(boolean)checkIfUserExists($username,$password)."<br>"; if (checkIfUserExists($username, $password) == 'true') { //Check if approved if (checkIfApproved($username, $password) == 'true') { //Create Session createSession($username, $password); } else { print 'napproved'; } } else { print 'Incorrect'; } }