diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-03-07 18:12:43 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-03-07 18:12:43 +0100 |
commit | 13b4572a2f58231272c7f40add706d561ecf4855 (patch) | |
tree | 4835dc1793969445ae9d4209380bce1b21803e1a /lib/Travelynx.pm | |
parent | e2e33de7e1cb82b89cc0b19f9a022787eec98916 (diff) |
limit password length to 10000 characters
that should be sufficient…
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 49c1399..eec16ca 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -36,7 +36,7 @@ use XML::LibXML; sub check_password { my ( $password, $hash ) = @_; - if ( bcrypt( $password, $hash ) eq $hash ) { + if ( bcrypt( substr( $password, 0, 10000 ), $hash ) eq $hash ) { return 1; } return 0; |