aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-16 23:26:14 -0800
committerFriendika <info@friendika.com>2010-11-16 23:26:14 -0800
commitc2086ec50ed339fb864c8f0a93fbc40ff530c666 (patch)
treeed7a655b355d289216678dac6b7a57364d83b41c /include/auth.php
parentf9d5aafe9c2559a65aeb0aafeec5bfd5c76f1311 (diff)
downloadvolse-hubzilla-c2086ec50ed339fb864c8f0a93fbc40ff530c666.tar.gz
volse-hubzilla-c2086ec50ed339fb864c8f0a93fbc40ff530c666.tar.bz2
volse-hubzilla-c2086ec50ed339fb864c8f0a93fbc40ff530c666.zip
pull some template strings
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php
index 5d7ac436b..0a21a276a 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -69,7 +69,16 @@ else {
if(x($_POST,'password'))
$encrypted = hash('whirlpool',trim($_POST['password']));
-
+ else {
+ if((x($_POST,'auth-params')) && $_POST['auth-params'] === 'login') {
+ require_once('library/openid.php');
+ $openid = new LightOpenID;
+ $openid->identity = trim($_POST['login-name']);
+ $a = get_app();
+ $openid->returnUrl = $a->get_baseurl() . '/openid';
+ goaway($openid->authUrl());
+ }
+ }
if((x($_POST,'auth-params')) && $_POST['auth-params'] === 'login') {
// process login request