summaryrefslogtreecommitdiff
path: root/lib/PAUSE/OpenID/Controller/Root.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PAUSE/OpenID/Controller/Root.pm')
-rw-r--r--lib/PAUSE/OpenID/Controller/Root.pm25
1 files changed, 25 insertions, 0 deletions
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.