mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
password.php: fix use of UserHandler... - see http://pastebin.com/m159f0726
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@601 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
ec6acef54b
commit
25ad930215
@ -49,8 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
||||
}
|
||||
$username = $USERID_USERNAME;
|
||||
|
||||
$uh = new UserHandler();
|
||||
if(!$uh->login($username, $fPassword_current)) {
|
||||
if(UserHandler::login($username, $fPassword_current)) {
|
||||
$error += 1;
|
||||
$pPassword_password_current_text = $PALANG['pPassword_password_current_text_error'];
|
||||
}
|
||||
@ -62,7 +61,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
||||
|
||||
if ($error != 1)
|
||||
{
|
||||
if($uh->change_pass($username, $fPassword_current, $fPassword)) {
|
||||
$uh = new UserHandleR($username);
|
||||
if($uh->change_pass($fPassword_current, $fPassword)) {
|
||||
flash_info($PALANG['pPassword_result_success']);
|
||||
header("Location: main.php");
|
||||
exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user