Add validate_password support

This commit is contained in:
Ilia
2022-05-28 23:09:29 +03:00
parent dae7f8a397
commit 5ac4bdde17

View File

@@ -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);