Closed GoogleCodeExporter closed 9 years ago
Below is a way to hash password the concerto way, if someone is interested,
based on User Class in model/User.php
<? $id = 1;
$login='admin';
$last_login='0000-00-00 00:00:00';
function calculate_raw_password_hash($password) {
global $id, $login,$last_login;
$hash = $password;
for ($i = 0; $i < 5000; $i++) {
$hash = hash("sha512", $login . "-" . $hash);
}
return calculate_password_hash($hash);
}
function calculate_password_hash($hash) {
global $id, $login, $last_login;
for ($i = 0; $i < 5000; $i++) {
$hash = hash("sha512", $hash . "-" . $id . "-" . $login . "-" . $last_login);
}
return $hash;
}
echo calculate_raw_password_hash('admin');
?>
Thanks to this, I can access concerto now.
Original comment by florent....@gmail.com
on 10 Apr 2013 at 3:58
Are you sure your MySQL user had ALL privileges on *.* and GRANT privilege ?
Original comment by LisPrzem...@gmail.com
on 6 May 2013 at 5:48
I solved the issue.
I recreated the MySQL database with the right privileges.
Thanks for your reply.
Original comment by florent....@gmail.com
on 7 May 2013 at 9:16
Original comment by LisPrzem...@gmail.com
on 7 May 2013 at 12:33
Original issue reported on code.google.com by
florent....@gmail.com
on 10 Apr 2013 at 10:25Attachments: