duanqu9292 2015-07-29 16:43
浏览 63
已采纳

LightOpenID未检测到导致登录循环的登录

I have some simple code to hook into steam's OpenID login system

$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: /");
}

However, even after logging into steam using the authUrl it keeps redirecting me to the login page over and over and not detecting $openid->mode.

Any help appreciated.

  • 写回答

1条回答 默认 最新

  • duanjiu6697 2015-08-06 00:20
    关注

    This was due to a htaccess error. Make sure you have it configured correctly if you have this problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突