summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozef Kutej <jozef@kutej.net>2008-12-01 23:38:21 +0100
committerJozef Kutej <jozef@kutej.net>2008-12-01 23:38:21 +0100
commit184aca93bc263f4c007484cb63840eec80624283 (patch)
treececb86745b59b331483a7bd788515ea31216ea2a
parentserver certificate validation (diff)
parentstore pauseid in session after successfull login (diff)
downloadSimple-OpenID-184aca93bc263f4c007484cb63840eec80624283.tar.gz
Simple-OpenID-184aca93bc263f4c007484cb63840eec80624283.tar.bz2
Simple-OpenID-184aca93bc263f4c007484cb63840eec80624283.zip
Merge branch 'master' of git@git.useperl.at:PAUSE-OpenID
-rw-r--r--lib/PAUSE/OpenID/Controller/Root.pm3
-rw-r--r--pause_openid.pl2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm
index 275bff8..05135e5 100644
--- a/lib/PAUSE/OpenID/Controller/Root.pm
+++ b/lib/PAUSE/OpenID/Controller/Root.pm
@@ -82,6 +82,7 @@ sub login :Local {
if ($res->code == 200) {
$c->log->info('login pass');
+ $c->session->{pauseid} = $username;
$c->res->redirect($c->uri_for('/login_pass'));
}
else {
@@ -95,7 +96,7 @@ sub login :Local {
sub login_pass :Local {
my ( $self, $c ) = @_;
-
+
$c->res->content_type('text/plain');
$c->res->body('login pass');
}
diff --git a/pause_openid.pl b/pause_openid.pl
index 7fae2ea..6604d9b 100644
--- a/pause_openid.pl
+++ b/pause_openid.pl
@@ -11,7 +11,7 @@ return {
flash_to_stash => 1,
expires => 172800, # two days
memcached_new_args => {
- data => [ "10.10.10.108:11211" ],
+ data => [ "localhost:11211" ],
namespace => "pause_openid_session",
},
},