From 4dc219cf107de8ea323f8a07206ca930bb15b980 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 1 Mar 2018 19:22:23 +0000 Subject: Fix verification email link Fix up the verification email such that it contains a workable link. --- gentoobrowse-api/service/notifications/xslt/signup.xslt | 7 ++++--- gentoobrowse-api/unittests/testNotifications.cpp | 2 +- 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 @@

Click - https://gentoobrowse.randomdan.homeip.net/user/verify/ + https://gentoobrowse.randomdan.homeip.net/user/verification/ + / + - https://gentoobrowse.randomdan.homeip.net/user/verify/ - + here to confirm your account.

Or alternatively, copy and paste this code into the confirmation page:

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); } } -- cgit v1.2.3