Update profile.jade
Changed value=token to value=_csrf, this fixed the issue I had with deleting accounts.pull/2/head
parent
1f63e5c424
commit
520f63bbca
|
@ -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
|
||||
p: a(href='/auth/linkedin') Link your LinkedIn account
|
||||
|
|
Loading…
Reference in New Issue