mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +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 {
|
sub checkpassword {
|
||||||
my ($plain, $encrypted) = (@_);
|
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