From 3803cf2153091c4f319c379c3ac24cc8fc844b0a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 08:20:45 -0400 Subject: upload and change avatars code to upload and change avatars. combined some code in the settings area, too. darcs-hash:20080517122045-84dde-8e13994e627805f29679c9533c2f62db81dc0925.gz --- actions/password.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'actions/password.php') diff --git a/actions/password.php b/actions/password.php index 31831d3a9..3fd94b66a 100644 --- a/actions/password.php +++ b/actions/password.php @@ -21,26 +21,10 @@ if (!defined('LACONICA')) { exit(1) } class PasswordAction extends SettingsAction { - function handle($args) { - parent::handle($args); - if (!common_logged_in()) { - common_user_error(_t('Not logged in.')); - return; - } - if ($this->arg('METHOD') == 'POST') { - $this->handle_post(); - } else { - $this->show_form(); - } - } - function show_form($msg=NULL, $success=false) { common_show_header(_t('Change password')); $this->settings_menu(); - if ($msg) { - common_element('div', ($success) ? 'success' : 'error', - $msg); - } + $this->message($msg, $success); common_start_element('form', array('method' => 'POST', 'id' => 'password', 'action' => -- cgit v1.2.3-54-g00ecf