summaryrefslogtreecommitdiffstats
path: root/examples/server/lib/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/lib/actions.php')
-rw-r--r--examples/server/lib/actions.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/server/lib/actions.php b/examples/server/lib/actions.php
index 5e255e2..f38637f 100644
--- a/examples/server/lib/actions.php
+++ b/examples/server/lib/actions.php
@@ -6,6 +6,7 @@ require_once "lib/render.php";
require_once "lib/render/login.php";
require_once "lib/render/sites.php";
+require_once "lib/render/idpage.php";
require_once "Auth/OpenID.php";
@@ -88,17 +89,8 @@ function login_checkInput($input)
if (!isset($input['openid_url'])) {
$errors[] = 'Enter an OpenID URL to continue';
}
- if (!isset($input['password'])) {
- $errors[] = 'Enter a password to continue';
- }
if (count($errors) == 0) {
$openid_url = $input['openid_url'];
- $openid_url = Auth_OpenID::normalizeUrl($openid_url);
- $password = $input['password'];
- if (!checkLogin($openid_url, $password)) {
- $errors[] = 'The entered password does not match the ' .
- 'entered identity URL.';
- }
}
return array($errors, $openid_url);
}
@@ -166,4 +158,9 @@ function action_sites()
return sites_render($sites);
}
+function action_idpage()
+{
+ return idpage_render(getLoggedInUser());
+}
+
?> \ No newline at end of file