From cac9c86dd5673befab22fe8cb64603eae33b4c58 Mon Sep 17 00:00:00 2001 From: rackover Date: Sat, 9 Nov 2019 23:59:35 +0100 Subject: [PATCH] Uses GET instead of POST for token --- routes/views/accounts/get/createAccount.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/views/accounts/get/createAccount.js b/routes/views/accounts/get/createAccount.js index ddb4555c..11438706 100644 --- a/routes/views/accounts/get/createAccount.js +++ b/routes/views/accounts/get/createAccount.js @@ -6,8 +6,8 @@ exports = module.exports = function(req, res) { // item in the header navigation. locals.section = 'account'; - if (req.body.token){ - locals.tokenURL = process.env.API_URL+"/users/activate?token="+ req.body.token + if (req.query.token){ + locals.tokenURL = process.env.API_URL+"/users/activate?token="+ req.query.token } else{ let flash = {};