mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
use the entire password as the seed when encrypting it, since some crypt() routines no longer use only the first two characters
This commit is contained in:
parent
84c0d8d35e
commit
29b610a7a6
@ -55,7 +55,7 @@ sub cryptit {
|
||||
|
||||
sub checkpassword {
|
||||
my ($plain, $encrypted) = (@_);
|
||||
return $encrypted eq crypt($plain, substr($encrypted, 0, 2));
|
||||
return $encrypted eq crypt($plain, $encrypted);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user