diff options
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 11 |
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 |