diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-08-05 01:29:22 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-08-05 01:29:22 +0300 |
commit | b803dc42ddb68567e6531eb1aa2c4bd478fd853c (patch) | |
tree | e3d839024ae75052538fc83b1f63eb0b93dd8935 /user_password.php | |
parent | baf1d0b9ad87cbc8a8a575d6d2973dd8721a6ea5 (diff) |
Move server privileges to static methods
Move libraries/server_privileges.lib.php to libraries/classes/Server/Privileges.php
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'user_password.php')
-rw-r--r-- | user_password.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/user_password.php b/user_password.php index db415ec641..1654d33c9a 100644 --- a/user_password.php +++ b/user_password.php @@ -10,17 +10,13 @@ use PhpMyAdmin\Core; use PhpMyAdmin\Url; use PhpMyAdmin\Response; +use PhpMyAdmin\Server\Privileges; /** * Gets some core libraries */ require_once './libraries/common.inc.php'; -/** - * Libraries needed for some functions - */ -require_once './libraries/server_privileges.lib.php'; - $response = Response::getInstance(); $header = $response->getHeader(); $scripts = $header->getScripts(); @@ -158,7 +154,7 @@ function PMA_changePassword($password, $message, $change_password_message) ) { $orig_auth_plugin = $_REQUEST['authentication_plugin']; } else { - $orig_auth_plugin = PMA_getCurrentAuthenticationPlugin( + $orig_auth_plugin = Privileges::getCurrentAuthenticationPlugin( 'change', $username, $hostname ); } @@ -257,7 +253,7 @@ function PMA_changePassUrlParamsAndSubmitQuery( $GLOBALS['dbi']->tryQuery('SET `old_passwords` = 2;'); } - $hashedPassword = PMA_getHashedPassword($_POST['pma_pw']); + $hashedPassword = Privileges::getHashedPassword($_POST['pma_pw']); $local_query = "UPDATE `mysql`.`user` SET" . " `authentication_string` = '" . $hashedPassword |