summaryrefslogtreecommitdiff
path: root/actions/login.php
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-15 23:10:44 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-15 23:10:44 +0000
commit39b5957068126be3d0fbe93769daf6038a53f4d4 (patch)
tree0d753524b0180be3c1f8ac50729b7e1694da6e45 /actions/login.php
parent0357ea505dd8aba293a67f0bfa122c3bbd29e51b (diff)
parentba9f1f603b5d832d8dd2f2b910ddf90bf32181b8 (diff)
Merge branch 'uiredesign' of ../evan into uiredesign
Diffstat (limited to 'actions/login.php')
-rw-r--r--actions/login.php21
1 files changed, 8 insertions, 13 deletions
diff --git a/actions/login.php b/actions/login.php
index 5226458fb..7ae1ed41d 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -22,7 +22,7 @@ if (!defined('LACONICA')) { exit(1); }
class LoginAction extends Action
{
- function is_readonly()
+ function isReadOnly()
{
return true;
}
@@ -33,13 +33,13 @@ class LoginAction extends Action
if (common_is_real_login()) {
$this->clientError(_('Already logged in.'));
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- $this->check_login();
+ $this->checkLogin();
} else {
- $this->show_form();
+ $this->showForm();
}
}
- function check_login()
+ function checkLogin()
{
# XXX: login throttle
@@ -75,7 +75,7 @@ class LoginAction extends Action
}
common_redirect($url);
} else {
- $this->show_form(_('Incorrect username or password.'));
+ $this->showForm(_('Incorrect username or password.'));
return;
}
@@ -104,7 +104,7 @@ class LoginAction extends Action
common_redirect($url);
}
- function show_form($error=null)
+ function showForm($error=null)
{
$this->error = $error;
$this->showPage();
@@ -120,7 +120,7 @@ class LoginAction extends Action
if ($this->error) {
$this->element('p', 'error', $this->error);
} else {
- $instr = $this->get_instructions();
+ $instr = $this->getInstructions();
$output = common_markup_to_html($instr);
$this->raw($output);
}
@@ -143,10 +143,9 @@ class LoginAction extends Action
$this->element('a', array('href' => common_local_url('recoverpassword')),
_('Lost or forgotten password?'));
$this->elementEnd('p');
- common_show_footer();
}
- function get_instructions()
+ function getInstructions()
{
if (common_logged_in() &&
!common_is_real_login() &&
@@ -164,8 +163,4 @@ class LoginAction extends Action
'try [OpenID](%%action.openidlogin%%). ');
}
}
-
- function show_top($error=null)
- {
- }
}