Weebalu / lightopenid

Automatically exported from code.google.com/p/lightopenid
0 stars 0 forks source link

validate() returns false for Wordpress and MyOpenid #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Google login works but using the Wordpress OpenID plugin or MyOpenid the 
validate() function fails.

<?php
require 'openid.php';

$openid = new LightOpenID('domain.netaction.de');

if(isset($_POST['openid_identifier'])) {
  $openid->identity = $_POST['openid_identifier'];
  header('Location: ' . $openid->authUrl());
}

if ($openid->validate()) echo 'Accepted OpenID: '.$openid->identity;
?>
<form action="" method="post">
OpenID: <input type="text" name="openid_identifier" /> <input type="submit" />
</form>

Original issue reported on code.google.com by schm...@netaction.de on 13 Feb 2012 at 7:04

GoogleCodeExporter commented 8 years ago
After disabling both Open_Basedir and Safe_Mode everything works.

Original comment by schm...@netaction.de on 13 Feb 2012 at 8:00