Skip to content

Commit

Permalink
Fixes #124
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed May 31, 2019
1 parent 91cbcd2 commit 41f17a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmeventnotification.pl
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,8 @@ sub validateZmAuth
my $saved_pass = $state->{Password};
# perl bcrypt libs can't handle $2b$ or $2y$
$saved_pass =~ s/^\$2.\$/\$2a\$/;
printDebug ("Comparing using bcrypt $new_hash to $saved_pass");
my $new_hash = Crypt::Eksblowfish::Bcrypt::bcrypt($p, $saved_pass);
printDebug ("Comparing using bcrypt $new_hash to $saved_pass");
return $new_hash eq $saved_pass;
}
}
Expand Down

0 comments on commit 41f17a3

Please sign in to comment.