src/OwpUsers.inc.php
public function userLogin($email, $passwd)
    {
        try {
            $exists = $this->userLoginCore("WHERE LCASE(tbl_users.email) = LCASE('" . filter_var($email, FILTER_SANITIZE_EMAIL) . "')");
        } catch (OwpUserException $e) {
            throw new OwpUserException("Login failed: " . $e->getMessage(), 911);
        }

        if ($exists) {
            $val_pass = $this->validate_password($passwd, $this->userDataItem("passwd"));

            if ($val_pass === true) {
                return self::userID();
            } else {
                if (isset($_SESSION["userData"])) {
                    unset($_SESSION["userData"]);
                }
            }
        }

        return false;

    }
public function userLogin($email, $passwd)
    {
        try {
            $exists = $this->userLoginCore("WHERE LCASE(tbl_users.email) = LCASE('" . filter_var($email, FILTER_SANITIZE_EMAIL) . "')");
        } catch (OwpUserException $e) {
            throw new OwpUserException("Login failed: " . $e->getMessage(), 911);
        }

        if ($exists) {
            $val_pass = $this->validate_password($passwd, $this->userDataItem("passwd"));

            if ($val_pass === true) {
                return self::userID();
            } else {
                if (isset($_SESSION["userData"])) {
                    unset($_SESSION["userData"]);
                }
            }
        }

        return false;

    }
userLogin

@method userLogin($email, $passwd) User login via email and password
@access public
@param  string $email  Valid user email address
@param  string $passwd Valid user password
@return boolean
@throws OwpUserException User status information

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0