Skip to content
Snippets Groups Projects
Commit 1871e663 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Renaming the verify links to be the same as in the email.

This gives us end to end flow!  BOOOYA!
parent a1ace952
No related branches found
No related tags found
No related merge requests found
......@@ -122,14 +122,14 @@ function router(app) {
res.render('privacy.ejs', {title: 'Privacy Policy', fullpage: false});
});
app.get(/^\/verifyuser(\.html)?$/, function(req, res) {
app.get(/^\/verify_email_address(\.html)?$/, function(req, res) {
var site = "http://sitesite.com";
var email = "email@email.com";
res.render('verifyuser.ejs', {title: 'Complete Registration', fullpage: true, site: site, email: email});
});
app.get(/^\/verifyemail(\.html)?$/, function(req,res) {
app.get(/^\/add_email_address(\.html)?$/, function(req,res) {
res.render('verifyemail.ejs', {title: 'Verify Email Address', fullpage: false});
});
......
......@@ -260,7 +260,7 @@ $(function() {
var token = getParameterByName("token"),
path = document.location.pathname;
if (token && path === "/prove") {
if (token && path === "/add_email_address") {
BrowserIDNetwork.completeEmailRegistration(token, function onSuccess(valid) {
if (valid) {
emailRegistrationSuccess();
......@@ -274,7 +274,7 @@ $(function() {
}
if(token && path === "/verify") {
if(token && path === "/verify_email_address") {
$("#signUpForm").submit(function(event) {
event.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment