Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-02-25 19:37:14 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-02-25 19:37:14 +0300
commit9901a613249e2084635efd48e4d8afaa50f7dbae (patch)
treef24c7bbddfc11bc0f7d0d19ed55b35fbd1170fee /user_password.php
parenta862add418cbfd3346f8df692d03bf3000669ec6 (diff)
Replace static methods with instance methods
Replace PhpMyAdmin\UserPassword static methods with instance methods. Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/user_password.php b/user_password.php
index e51f887f97..945fc092f8 100644
--- a/user_password.php
+++ b/user_password.php
@@ -23,6 +23,8 @@ $scripts = $header->getScripts();
$scripts->addFile('server_privileges.js');
$scripts->addFile('vendor/zxcvbn.js');
+$userPassword = new UserPassword();
+
/**
* Displays an error message and exits if the user isn't allowed to use this
* script
@@ -47,12 +49,12 @@ if (isset($_REQUEST['nopass'])) {
} else {
$password = $_REQUEST['pma_pw'];
}
- $change_password_message = UserPassword::setChangePasswordMsg();
+ $change_password_message = $userPassword->setChangePasswordMsg();
$msg = $change_password_message['msg'];
if (! $change_password_message['error']) {
- UserPassword::changePassword($password, $msg, $change_password_message);
+ $userPassword->changePassword($password, $msg, $change_password_message);
} else {
- UserPassword::getChangePassMessage($change_password_message);
+ $userPassword->getChangePassMessage($change_password_message);
}
}