Skip to content

Commit

Permalink
Uses GET instead of POST for token
Browse files Browse the repository at this point in the history
  • Loading branch information
rackover authored and Brutus5000 committed Nov 10, 2019
1 parent 0f229da commit cac9c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/views/accounts/get/createAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit cac9c86

Please sign in to comment.