LightOpenID 未检测到导致登录循环的登录
LightOpenID not detecting login causing login looping
我有一些简单的代码可以连接到 Steam 的 OpenID 登录系统
$openid = new LightOpenID('url');
$openid->identity = "http://steamcommunity.com/openid";
if(!$openid->mode) {
header("Location: " . $openid->authUrl());
} elseif($openid->mode == "cancel") {
exit("error");
} else {
$_SESSION['ID'] = $openid->validate() ? $openid->identity : null;
header("Location: /");
}
然而,即使在使用 authUrl
登录到 Steam 之后,它仍会一遍又一遍地将我重定向到登录页面并且没有检测到 $openid->mode
。
感谢任何帮助。
这是由于 htaccess
错误。如果遇到此问题,请确保配置正确。
我有一些简单的代码可以连接到 Steam 的 OpenID 登录系统
$openid = new LightOpenID('url');
$openid->identity = "http://steamcommunity.com/openid";
if(!$openid->mode) {
header("Location: " . $openid->authUrl());
} elseif($openid->mode == "cancel") {
exit("error");
} else {
$_SESSION['ID'] = $openid->validate() ? $openid->identity : null;
header("Location: /");
}
然而,即使在使用 authUrl
登录到 Steam 之后,它仍会一遍又一遍地将我重定向到登录页面并且没有检测到 $openid->mode
。
感谢任何帮助。
这是由于 htaccess
错误。如果遇到此问题,请确保配置正确。