summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kröll <pepl@cpan.org>2008-12-01 22:20:34 +0100
committerMichael Kröll <pepl@cpan.org>2008-12-01 22:20:34 +0100
commit32b0ff14cda17d53a18b591185325c5735a0f19b (patch)
tree21bc008604c866e799f8bae9da0304ac655513b7
parentMerge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff)
downloadSimple-OpenID-32b0ff14cda17d53a18b591185325c5735a0f19b.tar.gz
Simple-OpenID-32b0ff14cda17d53a18b591185325c5735a0f19b.tar.bz2
Simple-OpenID-32b0ff14cda17d53a18b591185325c5735a0f19b.zip
Pass through params to stylesheet
-rw-r--r--lib/PAUSE/OpenID/Controller/Root.pm5
-rw-r--r--root/templates/index.xsl4
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/PAUSE/OpenID/Controller/Root.pm b/lib/PAUSE/OpenID/Controller/Root.pm
index c37b2c2..ba6db5d 100644
--- a/lib/PAUSE/OpenID/Controller/Root.pm
+++ b/lib/PAUSE/OpenID/Controller/Root.pm
@@ -32,6 +32,11 @@ sub index :Path :Args(0) {
$c->stash->{xml} =<<XML;
<document/>
XML
+
+ # Pass through parameters (unchecked for now)
+ foreach my $key ( keys %{$c->req->params} ) {
+ $c->stash->{$key} = $c->req->param($key);
+ }
# Hello World
$c->forward('PAUSE::OpenID::View::XSLT');
diff --git a/root/templates/index.xsl b/root/templates/index.xsl
index adca9c6..c471513 100644
--- a/root/templates/index.xsl
+++ b/root/templates/index.xsl
@@ -7,7 +7,7 @@
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="no"/>
- <xsl:param name="origin_website"/>
+ <xsl:param name="openid.return_to"/>
<xsl:template match="/document">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -19,7 +19,7 @@
</head>
<body>
- <p>The website '<xsl:value-of select="$origin_website"/>' wants to verify your PAUSE identity.</p>
+ <p>The website '<xsl:value-of select="$openid.return_to"/>' wants to verify your PAUSE identity.</p>
<form method="post" action="signin" id="login_form">
<div>
<label for="username"><abbr title="Perl Authors Upload Server">PAUSE</abbr> ID:</label>