From 520f63bbcaa5fdf44d5a396c601999b076630a3d Mon Sep 17 00:00:00 2001 From: kaneschutzman Date: Thu, 17 Apr 2014 23:05:00 -1000 Subject: [PATCH] Update profile.jade Changed value=token to value=_csrf, this fixed the issue I had with deleting accounts. --- views/account/profile.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/account/profile.jade b/views/account/profile.jade index 3f5fdbe812..c31cc5fe39 100644 --- a/views/account/profile.jade +++ b/views/account/profile.jade @@ -65,7 +65,7 @@ block content p You can delete your account, but keep in mind this action is irreversible. form(action='/account/delete', method='POST') - input(type='hidden', name='_csrf', value=token) + input(type='hidden', name='_csrf', value=_csrf) button.btn.btn-danger(type='submit') i.fa.fa-trash-o | Delete my account @@ -96,4 +96,4 @@ block content if user.linkedin p: a.text-danger(href='/account/unlink/linkedin') Unlink your LinkedIn account else - p: a(href='/auth/linkedin') Link your LinkedIn account \ No newline at end of file + p: a(href='/auth/linkedin') Link your LinkedIn account