mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
Fix PHP8 compatibility
This commit is contained in:
parent
a6d0f7d126
commit
a4319237f2
1 changed files with 2 additions and 2 deletions
|
@ -363,10 +363,10 @@ class LSattr_ldap_password extends LSattr_ldap {
|
||||||
*/
|
*/
|
||||||
public static function getSalt($length=8) {
|
public static function getSalt($length=8) {
|
||||||
$pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
|
$pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
|
||||||
$key = $pattern{rand(0,35)};
|
$key = $pattern[rand(0,35)];
|
||||||
for($i=1;$i<$length;$i++)
|
for($i=1;$i<$length;$i++)
|
||||||
{
|
{
|
||||||
$key .= $pattern{rand(0,35)};
|
$key .= $pattern[rand(0,35)];
|
||||||
}
|
}
|
||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue