From 3b7606b654a3edc127eab219ce59f7ac520f3465 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 23 Jun 2013 17:56:16 +0000 Subject: [PATCH] users/password.php: - update to use non-static MailboxHandler->login() git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1492 a1433add-5e2c-0410-b055-b7f2511e0802 --- users/password.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/users/password.php b/users/password.php index ced27b5f..b32e0f0e 100644 --- a/users/password.php +++ b/users/password.php @@ -54,8 +54,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") flash_error($validpass[0]); # TODO: honor all error messages, not only the first one $error += 1; } - - if(!MailboxHandler::login($username, $fPassword_current)) { + + $mh = new MailboxHandler; + + if(!$mh->login($username, $fPassword_current)) { $error += 1; $pPassword_password_current_text = $PALANG['pPassword_password_current_text_error']; } @@ -67,7 +69,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") if ($error == 0) { - $mh = new MailboxHandler(); $mh->init($username); # TODO: error handling if($mh->change_pw($fPassword, $fPassword_current) ) { flash_info($PALANG['pPassword_result_success']);