diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-18 11:05:57 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-18 11:05:57 -0400 |
commit | 30c3cd552b9b2424167818c96de4c813c120111e (patch) | |
tree | 9b8bac3716e2204c29e80b6348071bee770285f7 /actions/openidlogin.php | |
parent | 23c0b1f48241e198a631f333a3d6e5faedab0279 (diff) |
fixup syntax error in openid.php
darcs-hash:20080618150557-84dde-61120bcf12e9ecfaafda079d1a943c75f99f5930.gz
Diffstat (limited to 'actions/openidlogin.php')
-rw-r--r-- | actions/openidlogin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/openidlogin.php b/actions/openidlogin.php index fa04d4576..6ce4bb191 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -28,7 +28,8 @@ class OpenidloginAction extends Action { if (common_logged_in()) { common_user_error(_t('Already logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { - $result = oid_authenticate($this->trimmed('openid_url'), 'finishopenidlogin'); + $result = oid_authenticate($this->trimmed('openid_url'), + 'finishopenidlogin'); if (is_string($result)) { # error message $this->show_form($result); } @@ -45,9 +46,10 @@ class OpenidloginAction extends Action { common_element('div', 'instructions', _t('Login with an OpenID account.')); } + $formaction = common_local_url('openidlogin'); common_element_start('form', array('method' => 'POST', 'id' => 'openidlogin', - 'action' => common_local_url('openidlogin'))); + 'action' => $formaction)); common_input('openid_url', _t('OpenID URL')); common_submit('submit', _t('Login')); common_element_end('form'); |