fixup syntax error in openid.php

darcs-hash:20080618150557-84dde-61120bcf12e9ecfaafda079d1a943c75f99f5930.gz
This commit is contained in:
Evan Prodromou 2008-06-18 11:05:57 -04:00
parent 23c0b1f482
commit 30c3cd552b
2 changed files with 76 additions and 75 deletions

View File

@ -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');

View File

@ -136,5 +136,4 @@ function oid_authenticate($openid_url, $returnto) {
common_show_footer();
}
}
}
}