Skip to content

Commit

Permalink
corrections from federated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 30, 2011
1 parent 60884da commit e2700bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion www/oauth2/auth/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
require_once('../../unhosted/unhosted.php');

if(count($_POST)) {
$token = registerScope($POST["user_address"], $_POST["pwd"], $_POST["scope"]);
$unhostedAccount = new UnhostedAccount($_POST["user_address"], $_POST["pwd"]);
$token = $unhostedAccount->addAPP($_POST["scope"]);
if($token) {
header("Location:".$_POST["redirect_uri"]."?token=".$token);
echo "redirecting you back to the application.\n";
Expand Down
2 changes: 1 addition & 1 deletion www/unhosted/webfinger.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once('../unhosted_includes/init.php');
require_once('init.php');

if(isset($_GET['q'])) {
header('Content-Type: application/xml+xrd');
Expand Down

0 comments on commit e2700bb

Please sign in to comment.