Skip to content

Commit

Permalink
fix login controller generating list of login methods
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Sep 8, 2024
1 parent ce9b711 commit 85a623b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Login.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub auto : Private {
sub index : Path {
my ( $self, $c ) = @_;
my @login = map { "<li><a href=\"/login/" . lc($_) . "\">$_</a></li>" }
sort grep {s/^Login:://} $c->controllers;
sort map /^Login::(.*)/, $c->controllers;
$c->res->content_type('text/html');
$c->res->body(qq{<pre><h1>Login via</h1><ul>@login</ul></pre>});
}
Expand Down

0 comments on commit 85a623b

Please sign in to comment.