From 1057db90b4a17e82e31ea39c137ac22fa523198c Mon Sep 17 00:00:00 2001 From: Jozef Kutej Date: Mon, 1 Dec 2008 22:14:53 +0100 Subject: dummy login/ --- lib/PAUSE/OpenID/Controller/Root.pm | 25 +++++++++++++++++++++++++ root/templates/index.xsl | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm index c37b2c2..41b767e 100644 --- a/lib/PAUSE/OpenID/Controller/Root.pm +++ b/lib/PAUSE/OpenID/Controller/Root.pm @@ -44,6 +44,31 @@ sub default :Path { } +sub login :Local { + my ( $self, $c ) = @_; + + my $username = $c->req->param('username'); + my $password = $c->req->param('password'); + + $c->log->debug('username "'.$username.'" login attemp'); + + $c->res->redirect($c->uri_for('/login_failed')); +} + +sub login_pass { + my ( $self, $c ) = @_; + + $c->res->content_type('text/plain'); + $c->res->body('login pass'); +} + +sub login_failed { + my ( $self, $c ) = @_; + + $c->res->content_type('text/plain'); + $c->res->body('login fail'); +} + =head2 end Attempt to render a view, if needed. diff --git a/root/templates/index.xsl b/root/templates/index.xsl index adca9c6..0135613 100644 --- a/root/templates/index.xsl +++ b/root/templates/index.xsl @@ -20,7 +20,7 @@

The website '' wants to verify your PAUSE identity.

-
+
-- cgit v1.2.3