From c2086ec50ed339fb864c8f0a93fbc40ff530c666 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 16 Nov 2010 23:26:14 -0800 Subject: pull some template strings --- include/auth.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/auth.php') 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 -- cgit v1.2.3