public function user_login($username, $password) {
        $cached = $this->get_static_user_info();
        if (empty($cached)) {
            // This means we were called as part of a normal login flow - without using oauth.
            return false;
        }
        $verifyusername = $cached['username'];
        if ($verifyusername == $username) {
            return true;
        }
        return false;
    }
public function user_login($username, $password) {
        $cached = $this->get_static_user_info();
        if (empty($cached)) {
            // This means we were called as part of a normal login flow - without using oauth.
            return false;
        }
        $verifyusername = $cached['username'];
        if ($verifyusername == $username) {
            return true;
        }
        return false;
    }
public function user_login ( $ username , $ password ) { $ cached = $ this -> get_static_user_info ( ) ; if ( empty ( $ cached ) ) { // This means we were called as part of a normal login flow - without using oauth. return false ; } $ verifyusername = $ cached [ 'username' ] ; if ( $ verifyusername == $ username ) { return true ; } return false ; }
Returns true if the username and password work or don't exist and false
if the user exists and the password is wrong.

@param string $username The username
@param string $password The password
@return bool Authentication success or failure.
Returns true if the username and password work or don t exist and false if the user exists and the password is wrong .