mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Add validate_password support
This commit is contained in:
@@ -270,6 +270,12 @@ if (!&check_sha512()) {
|
||||
return 1 if ($shash && $shash eq $hash);
|
||||
}
|
||||
|
||||
# yescrypt
|
||||
if (!&check_yescrypt()) {
|
||||
my $shash = &encrypt_yescrypt($passwd, $hash);
|
||||
return 1 if ($shash && $shash eq $hash);
|
||||
}
|
||||
|
||||
# Some other hashing, maybe supported by crypt
|
||||
my $ohash = eval { crypt($passwd, $hash) };
|
||||
return 1 if ($ohash && $ohash eq $hash);
|
||||
|
||||
Reference in New Issue
Block a user