Browse Source

Pass the correct version to URLBuilder when verifying things

tags/0.5
Chris Smith 15 years ago
parent
commit
58b71a1764
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      keymanager.inc.php

+ 2
- 2
keymanager.inc.php View File

@@ -61,7 +61,7 @@
61 61
    * @param String $server The server to associate with
62 62
    */
63 63
   public static function associate($server) {
64
-   $data = URLBuilder::buildAssociate($server);
64
+   $data = URLBuilder::buildAssociate($server, $_SESSION['openid']['version']);
65 65
 
66 66
    try {
67 67
     $res = Poster::post($server, $data);
@@ -239,7 +239,7 @@
239 239
    * @return True if the request has been authenticated, false otherwise.
240 240
    */
241 241
   public static function dumbAuthenticate() {
242
-   $url = URLBuilder::buildAuth($_REQUEST);
242
+   $url = URLBuilder::buildAuth($_REQUEST, $_SESSION['openid']['version']);
243 243
 
244 244
    try {
245 245
     $data = Poster::post($_SESSION['openid']['server'], $url);

Loading…
Cancel
Save