Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensures password length validation cannot break if parameters undefined.
  • Loading branch information
drn05r committed Jan 12, 2022
1 parent ab952aa commit 0904940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cfg.d/user_password_maxlength.pl
Expand Up @@ -5,7 +5,7 @@
my( %args ) = @_;
my( $repo, $field, $user, $value, $problems ) = @args{qw( repository field dataobj value problems )};

return unless $user->isa( "EPrints::DataObj::User" ) && $field->type eq "secret";
return unless defined $user && $user->isa( "EPrints::DataObj::User" ) && $field->type eq "secret";

my $password;
foreach my $key ( keys %{ $repo->{query}->{param} } )
Expand Down

0 comments on commit 0904940

Please sign in to comment.