diff options
| -rw-r--r-- | gentoobrowse-api/service/notifications/xslt/signup.xslt | 7 | ||||
| -rw-r--r-- | 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 @@  			<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);  	}  } | 
