summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-01 19:22:23 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-03 19:29:56 +0000
commit4dc219cf107de8ea323f8a07206ca930bb15b980 (patch)
tree469e6493fb220737e52d9b68862876b639dca4d5
parentRemove the irksome notifications library, build everything into the service i... (diff)
downloadgentoobrowse-api-4dc219cf107de8ea323f8a07206ca930bb15b980.tar.bz2
gentoobrowse-api-4dc219cf107de8ea323f8a07206ca930bb15b980.tar.xz
gentoobrowse-api-4dc219cf107de8ea323f8a07206ca930bb15b980.zip
Fix verification email linkgentoobrowse-api-0.9.5
Fix up the verification email such that it contains a workable link.
-rw-r--r--gentoobrowse-api/service/notifications/xslt/signup.xslt7
-rw-r--r--gentoobrowse-api/unittests/testNotifications.cpp2
2 files changed, 5 insertions, 4 deletions
diff --git a/gentoobrowse-api/service/notifications/xslt/signup.xslt b/gentoobrowse-api/service/notifications/xslt/signup.xslt
index d6c94b5..f1e3278 100644
--- a/gentoobrowse-api/service/notifications/xslt/signup.xslt
+++ b/gentoobrowse-api/service/notifications/xslt/signup.xslt
@@ -10,11 +10,12 @@
<p>
Click <a>
<xsl:attribute name="href">
- <xsl:text>https://gentoobrowse.randomdan.homeip.net/user/verify/</xsl:text>
+ <xsl:text>https://gentoobrowse.randomdan.homeip.net/user/verification/</xsl:text>
<xsl:value-of select="verifyguid" />
+ <xsl:text>/</xsl:text>
+ <xsl:value-of select="username" />
</xsl:attribute>
- <xsl:text>https://gentoobrowse.randomdan.homeip.net/user/verify/</xsl:text>
- <xsl:value-of select="verifyguid" />
+ <xsl:text>here</xsl:text>
</a> to confirm your account.
</p>
<p>Or alternatively, copy and paste this code into the confirmation page: <xsl:value-of select="verifyguid" /></p>
diff --git a/gentoobrowse-api/unittests/testNotifications.cpp b/gentoobrowse-api/unittests/testNotifications.cpp
index 3dcdd5c..9d8c806 100644
--- a/gentoobrowse-api/unittests/testNotifications.cpp
+++ b/gentoobrowse-api/unittests/testNotifications.cpp
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE( testSignup )
save("signup", e);
for (auto p : e->body) {
BOOST_REQUIRE(p->payload.find("Welcome to Gentoo Browse") != std::string::npos);
- BOOST_REQUIRE(p->payload.find("https://gentoobrowse.randomdan.homeip.net/user/verify/some-guid") != std::string::npos);
+ BOOST_REQUIRE(p->payload.find("https://gentoobrowse.randomdan.homeip.net/user/verification/some-guid/testuser") != std::string::npos);
BOOST_REQUIRE(p->payload.find("confirmation page: some-guid") != std::string::npos);
}
}