We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f654a commit 1275f48Copy full SHA for 1275f48
interface/web/login/password_reset.php
@@ -54,8 +54,10 @@
54
if($client['client_id'] > 0) {
55
$new_password = md5 (uniqid (rand()));
56
$salt="$1$";
57
- for ($n=0;$n<11;$n++) {
58
- $salt.=chr(mt_rand(64,126));
+ $base64_alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
+ for ($n=0;$n<8;$n++) {
59
+ //$salt.=chr(mt_rand(64,126));
60
+ $salt.=$base64_alphabet[mt_rand(0,63)];
61
}
62
$salt.="$";
63
$new_password_encrypted = crypt($new_password,$salt);
0 commit comments