首页 > 解决方案 > 如何修复“在 https://steamcommunity.com/openid 找不到 OpenID 服务器”

问题描述

我正在尝试将 Steam 登录添加到我的网站但收到此错误

在https://steamcommunity.com/openid找不到 OpenID 服务器

这是我正在使用的代码。

require 'steamauth/steamauth.php';


if(!isset($_SESSION['steamid'])) {

    loginbutton(); //login button

}  else {

    include ('steamauth/userInfo.php'); //To access the $steamprofile array
    //Protected content

    logoutbutton(); //Logout Button
}

其他四个文件位于“steamauth”下的https://github.com/SmItH197/SteamAuthentication

标签: phpopenidsteam

解决方案


如果文件在同一个文件夹中,您不必调用该文件夹

从您的包含中删除steamauth


推荐阅读