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:
authorDeven Bansod <devenbansod.bits@gmail.com>2015-12-19 19:30:39 +0300
committerDeven Bansod <devenbansod.bits@gmail.com>2015-12-19 19:30:39 +0300
commitdc640711851b39dd8090826cfe0108578e02f09e (patch)
treeb45c63e92cae6252fe9bc00e0bb1912822c2998a /user_password.php
parent7c0a25c93774b1e491440b14f3116de1d3433bfb (diff)
Add a base case for MySQL versions 5.5.0 - 5.5.7
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/user_password.php b/user_password.php
index d172f9f691..df8cd8b3eb 100644
--- a/user_password.php
+++ b/user_password.php
@@ -156,6 +156,9 @@ function PMA_changePassword($password, $message, $change_password_message)
);
}
+ $sql_query = 'SET password = '
+ . (($password == '') ? '\'\'' : $hashing_function . '(\'***\')');
+
if ($serverType == 'MySQL'
&& PMA_MYSQL_INT_VERSION >= 50706
) {
@@ -177,9 +180,6 @@ function PMA_changePassword($password, $message, $change_password_message)
$value = 0;
}
$GLOBALS['dbi']->tryQuery('SET `old_passwords` = ' . $value . ';');
-
- $sql_query = 'SET password = '
- . (($password == '') ? '\'\'' : $hashing_function . '(\'***\')');
}
PMA_changePassUrlParamsAndSubmitQuery(