summaryrefslogtreecommitdiff
path: root/lib/PAUSE/OpenID/Controller/Root.pm
diff options
context:
space:
mode:
authorMichael Kröll <pepl@cpan.org>2008-12-02 00:01:29 +0100
committerMichael Kröll <pepl@cpan.org>2008-12-02 00:01:29 +0100
commitf2ec2ba11b65fc188402c306d510c09818676b75 (patch)
treecd9d1d90c00989eb1d000a6cc006475c12c11ac8 /lib/PAUSE/OpenID/Controller/Root.pm
parentCheck for valid return_to url (diff)
parentMerge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff)
downloadSimple-OpenID-master.tar.gz
Simple-OpenID-master.tar.bz2
Simple-OpenID-master.zip
Merge branch 'master' of git@git.useperl.at:PAUSE-OpenIDHEADmaster
Diffstat (limited to 'lib/PAUSE/OpenID/Controller/Root.pm')
-rw-r--r--lib/PAUSE/OpenID/Controller/Root.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm
index 13f165f..c707cf8 100644
--- a/lib/PAUSE/OpenID/Controller/Root.pm
+++ b/lib/PAUSE/OpenID/Controller/Root.pm
@@ -67,6 +67,7 @@ sub error :Local {
sub default :Path {
my ( $self, $c ) = @_;
+ $c->response->content_type('text/plain');
$c->response->body( 'Page not found' );
$c->response->status(404);
@@ -87,6 +88,7 @@ sub login :Local {
$ua->credentials('pause.perl.org:443', 'PAUSE', $username, $password);
my $res = $ua->request($req);
+ # but this is bad as the certificate is checked AFTER the credentials are send :-(
die 'pause server certificate validation failed'
if exists $res->headers->{'client-ssl-warning'};
@@ -118,6 +120,13 @@ sub login_failed :Local {
$c->res->body('login fail');
}
+sub pauseid : Regex('^(.*)/?$') {
+ my ( $self, $c ) = @_;
+ my $param = $c->req->captures->[0];
+ $c->log->error("user $param");
+
+}
+
=head2 end
Attempt to render a view, if needed.