Skip to content

Commit

Permalink
even more perlcritic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davemenninger committed Nov 15, 2014
1 parent 493f242 commit d4e10cd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Lrrr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ sub startup {
$self->render( text => ($self->is_user_authenticated) ? 'secrets!' : 'go away!' );
});

return;
}

1;
2 changes: 2 additions & 0 deletions lib/Lrrr/Controller/Login.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sub login {
$self->render(msg => 'already logged in');
}
}
return;
}

sub logoff {
Expand All @@ -40,6 +41,7 @@ sub logoff {
format=>'html',
msg => 'you are now logged out.'
);
return;
}

1;
1 change: 1 addition & 0 deletions lib/Lrrr/Controller/Register.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sub register {
else { #not admin
$self->render( msg => 'you must be logged in as admin.' );
}
return;
}

1;
2 changes: 1 addition & 1 deletion script/create_default_admin_user.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
sub _salt {
my $num = 999999;
my $cr = crypt( rand($num), rand($num) ) . crypt( rand($num), rand($num) );
en_base64( substr( $cr, 4, 16 ) );
return en_base64( substr( $cr, 4, 16 ) );
}

my $cost = sprintf( '%02d', 6 );
Expand Down

0 comments on commit d4e10cd

Please sign in to comment.