public function hasPassword(\Gems_User_User $user)
    {
        $sql = "SELECT CASE WHEN gup_password IS NULL THEN 0 ELSE 1 END FROM gems__user_passwords WHERE gup_id_user = ?";

        return (boolean) $this->db->fetchOne($sql, $user->getUserLoginId());
    }
public function hasPassword(\Gems_User_User $user)
    {
        $sql = "SELECT CASE WHEN gup_password IS NULL THEN 0 ELSE 1 END FROM gems__user_passwords WHERE gup_id_user = ?";

        return (boolean) $this->db->fetchOne($sql, $user->getUserLoginId());
    }
public function hasPassword ( \ Gems_User_User $ user ) { $ sql = "SELECT CASE WHEN gup_password IS NULL THEN 0 ELSE 1 END FROM gems__user_passwords WHERE gup_id_user = ?" ; return ( boolean ) $ this -> db -> fetchOne ( $ sql , $ user -> getUserLoginId ( ) ) ; }
Return true if the user has a password.

@param \Gems_User_User $user The user to check
@return boolean
Return true if the user has a password .