mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix to use system default hashing format for htpasswd file
https://forum.virtualmin.com/t/how-to-change-awstats-user-password/118998/
This commit is contained in:
@@ -158,10 +158,10 @@ else {
|
||||
}
|
||||
}
|
||||
else {
|
||||
# Use built-in encryption code
|
||||
my $salt = $old ||
|
||||
chr(int(rand(26))+65).chr(int(rand(26))+65);
|
||||
return &unix_crypt($str, $salt);
|
||||
# Use built-in encryption code and use system default
|
||||
my $salt = $old;
|
||||
&foreign_require('useradmin');
|
||||
return &useradmin::encrypt_password($str, $salt, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user