} elsif (substr($chkpass, 0, 5) eq '{SHA}') {
need_sha1_crypt;
$crypt_method = "sha1";
} elsif (length($chkpass) == 13 && $chkpass ne $testpass) {
} elsif ((length($chkpass) == 13 && $chkpass ne $testpass) || ($chkpass =~ m/^\$[0-9]\$/)) {
$crypt_method = "crypt";
} else {
$crypt_method = "plain";