Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 02d59d7b6 -> 271f871a6


fix use of hash as reference error in email blacklist lookup


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/48506d9e
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/48506d9e
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/48506d9e

Branch: refs/heads/master
Commit: 48506d9e4632c4166d3d8ebb3a26ae1071f77743
Parents: 02d59d7
Author: Dylan Volz <[email protected]>
Authored: Tue Jul 11 11:49:31 2017 -0600
Committer: Dan Kirkwood <[email protected]>
Committed: Tue Jul 11 13:28:34 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/MojoPlugins/Validation.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/48506d9e/traffic_ops/app/lib/MojoPlugins/Validation.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/MojoPlugins/Validation.pm 
b/traffic_ops/app/lib/MojoPlugins/Validation.pm
index 6d35a92..5c9daf7 100755
--- a/traffic_ops/app/lib/MojoPlugins/Validation.pm
+++ b/traffic_ops/app/lib/MojoPlugins/Validation.pm
@@ -82,8 +82,8 @@ sub register {
                is_password_uncommon => sub {
                        my $self  = shift;
                        my $pass = $self->param('tm_user.local_passwd');
-                       my %blacklist = %{$self->app->{invalid_passwords}};
-                       if ( defined($pass) && defined(%blacklist->{$pass}) ) {
+                       my $blacklist = $self->app->{invalid_passwords};
+                       if ( defined($pass) && defined($blacklist->{$pass}) ) {
                                $self->field('tm_user.local_passwd')->is_like( 
qr/ . $pass . /, "Password is too common." );
                        }
                }

Reply via email to