diff options
author | Deven Bansod <devenbansod.bits@gmail.com> | 2015-12-19 19:26:57 +0300 |
---|---|---|
committer | Deven Bansod <devenbansod.bits@gmail.com> | 2015-12-19 19:26:57 +0300 |
commit | 7c0a25c93774b1e491440b14f3116de1d3433bfb (patch) | |
tree | 4e639eca95716e2560085be086fbed709f6ceb21 /user_password.php | |
parent | a93160128fdb7c159302d4cb904b78a6e5352f5d (diff) |
Move the variable assignment inside the else-if block
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'user_password.php')
-rw-r--r-- | user_password.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/user_password.php b/user_password.php index 33a52ea378..d172f9f691 100644 --- a/user_password.php +++ b/user_password.php @@ -177,9 +177,11 @@ function PMA_changePassword($password, $message, $change_password_message) $value = 0; } $GLOBALS['dbi']->tryQuery('SET `old_passwords` = ' . $value . ';'); + + $sql_query = 'SET password = ' + . (($password == '') ? '\'\'' : $hashing_function . '(\'***\')'); } - $sql_query = 'SET password = ' - . (($password == '') ? '\'\'' : $hashing_function . '(\'***\')'); + PMA_changePassUrlParamsAndSubmitQuery( $username, $hostname, $password, $sql_query, $hashing_function, $orig_auth_plugin |