From 548239dcc709e592556c80d2ef61bc276ac95516 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 1 Dec 2008 23:39:22 +0100 Subject: better .gitignore --- .gitignore | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index ad568e7..e5c46db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,14 @@ -cover_db META.yml -Makefile blib +_build +Build +.DS_Store inc pm_to_blib -MANIFEST -Makefile.old -pod2htm?.tmp -*.bak +.project +.settings +*.swp +tmp/* +cover_db +MANIFEST.bak +PAUSE-OpenID-* -- cgit v1.2.3 From bc30ecf0065744dcf3702b428031995df619ed2c Mon Sep 17 00:00:00 2001 From: Jozef Kutej Date: Mon, 1 Dec 2008 23:45:33 +0100 Subject: bad bad --- lib/PAUSE/OpenID/Controller/Root.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm index 05135e5..221955f 100644 --- a/lib/PAUSE/OpenID/Controller/Root.pm +++ b/lib/PAUSE/OpenID/Controller/Root.pm @@ -77,6 +77,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'}; -- cgit v1.2.3 From b143b0264817e999c40601b32a81901cc7a8ff72 Mon Sep 17 00:00:00 2001 From: Jozef Kutej Date: Mon, 1 Dec 2008 23:52:13 +0100 Subject: page not found content type --- lib/PAUSE/OpenID/Controller/Root.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm index cfbc608..e2b918b 100644 --- a/lib/PAUSE/OpenID/Controller/Root.pm +++ b/lib/PAUSE/OpenID/Controller/Root.pm @@ -62,6 +62,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); -- cgit v1.2.3 From 09476def18f56124e778d7625783111aeb48481a Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 1 Dec 2008 23:56:45 +0100 Subject: added rough catch-all action for pauseids --- lib/PAUSE/OpenID/Controller/Root.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm index 05135e5..e0575b8 100644 --- a/lib/PAUSE/OpenID/Controller/Root.pm +++ b/lib/PAUSE/OpenID/Controller/Root.pm @@ -108,6 +108,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. -- cgit v1.2.3 From 4109d39f65f45acf0b39c229e12b2d5b0b3c4e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20D=C9=AA=E1=B4=87=E1=B4=84=E1=B4=8B=E1=B4=8F?= =?UTF-8?q?=E1=B4=A1?= Date: Mon, 1 Dec 2008 23:57:50 +0100 Subject: basic styling --- root/static/css/default.css | 33 +++++++++++++++++++++++++++++++++ root/static/images/openid-logo.png | Bin 0 -> 3218 bytes root/templates/index.xsl | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 root/static/images/openid-logo.png diff --git a/root/static/css/default.css b/root/static/css/default.css index e69de29..a5f3b9a 100644 --- a/root/static/css/default.css +++ b/root/static/css/default.css @@ -0,0 +1,33 @@ +body { + padding: 1.2em; + color: #fff; + background-color: #086; + font-family: 'DejaVu Sans', 'Arial Unicode MS', sans-serif; +} + +h1,form,.redirectmessage { + color: #443; + border: 2px solid #986; + padding: 0.5em; + background-color: #fff; +} + +h1 { + margin-bottom: 1em; +} + +.redirectmessage { + float: left; + width: 50%; + margin-top: 0.7em; +} + +form { + float: right; + width: 20%; + margin-top: 0.7em; +} + +form input { + max-width: 90%; +} \ No newline at end of file diff --git a/root/static/images/openid-logo.png b/root/static/images/openid-logo.png new file mode 100644 index 0000000..3ec55c1 Binary files /dev/null and b/root/static/images/openid-logo.png differ diff --git a/root/templates/index.xsl b/root/templates/index.xsl index 6b83e4b..db4196c 100644 --- a/root/templates/index.xsl +++ b/root/templates/index.xsl @@ -15,7 +15,7 @@ Sign in with OpenID -- cgit v1.2.3