summaryrefslogtreecommitdiff
path: root/gentoobrowse/emails
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-07-11 23:35:41 +0000
committerrandomdan <randomdan@localhost>2010-07-11 23:35:41 +0000
commitd98ba1df3e29f54f58ed5a6d5de2199ba568a4a4 (patch)
tree08640dc459d99a4b5db54610ce404448cfd678a9 /gentoobrowse/emails
parentImplement variables (prefixed strings to find values elsewhere) (diff)
downloadgentoobrowse-d98ba1df3e29f54f58ed5a6d5de2199ba568a4a4.tar.bz2
gentoobrowse-d98ba1df3e29f54f58ed5a6d5de2199ba568a4a4.tar.xz
gentoobrowse-d98ba1df3e29f54f58ed5a6d5de2199ba568a4a4.zip
Add signup and email confirmation
Diffstat (limited to 'gentoobrowse/emails')
-rw-r--r--gentoobrowse/emails/signup.xslt23
-rw-r--r--gentoobrowse/emails/welcome.xml16
2 files changed, 39 insertions, 0 deletions
diff --git a/gentoobrowse/emails/signup.xslt b/gentoobrowse/emails/signup.xslt
new file mode 100644
index 0000000..914784d
--- /dev/null
+++ b/gentoobrowse/emails/signup.xslt
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:project2="http://project2.randomdan.homeip.net/" exclude-result-prefixes="project2" >
+ <xsl:output encoding="utf-8" method="html" media-type="text/html" indent="yes"
+ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
+ <xsl:template match="/signup">
+ <html>
+ <head>
+ <title>Welcome to Gentoo Browse</title>
+ </head>
+ <body>
+ <p>Welcome to Gentoo Browse!</p>
+ <p>
+ Click <a><xsl:attribute name="href">http://<xsl:value-of select="/signup/project2:servername" />/confirm?verifyguid=<xsl:value-of select="/signup/verifyguids/verifyguid/guid" />
+ </xsl:attribute>this link</a> to confirm your account.
+ </p>
+ <p>Or alternatively, copy and paste this code into the confirmation page: <xsl:value-of select="/signup/verifyguids/verifyguid/guid" /></p>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
diff --git a/gentoobrowse/emails/welcome.xml b/gentoobrowse/emails/welcome.xml
new file mode 100644
index 0000000..09d2c3d
--- /dev/null
+++ b/gentoobrowse/emails/welcome.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<view root="signup" style="emails/signup.xslt" xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:project2="http://project2.randomdan.homeip.net">
+ <xi:include href="../datasources/postgres.xml" />
+ <project2:sqlview name="verifyguids" recordname="verifyguid" datasource="postgres">
+ <sql>
+ SELECT userid, CAST(verifyguid AS TEXT) AS guid
+ FROM users u
+ WHERE useremail = ?
+ AND verifyguid IS NOT NULL
+ </sql>
+ <parameters>
+ <param bind="0" value="$email" />
+ </parameters>
+ </project2:sqlview>
+</view>