Changed Varable from token to _csrf

pull/2/head
Brian Ridings 2014-03-28 13:40:55 -04:00
parent a49ee82150
commit f88a09081f
10 changed files with 11 additions and 10 deletions

View File

@ -4,7 +4,7 @@ block content
.col-sm-8.col-sm-offset-2
form(method='POST')
legend Forgot Password
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
p Enter your email address below and we will send you password reset instructions.
label.control-label(for='email') Email

View File

@ -3,7 +3,7 @@ extends ../layout
block content
form(method='POST')
legend Sign In
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.col-sm-8.col-sm-offset-2
if secrets.localAuth
.form-group

View File

@ -5,7 +5,7 @@ block content
h3 Profile Information
form.form-horizontal(action='/account/profile', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.col-sm-2.control-label(for='email') Email
.col-sm-4
@ -47,7 +47,7 @@ block content
h3 Change Password
form.form-horizontal(action='/account/password', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.col-sm-3.control-label(for='password') New Password
.col-sm-4

View File

@ -4,7 +4,7 @@ block content
.col-sm-8.col-sm-offset-2
form(method='POST')
legend Reset Password
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label(for='password') New Password
input.form-control(type='password', name='password', value='', placeholder='New password', autofocus=true)

View File

@ -2,7 +2,7 @@ extends ../layout
block content
form.form-horizontal(id='signup-form', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
legend Signup
.form-group
label.col-sm-3.control-label(for='email') Email

View File

@ -18,7 +18,7 @@ block content
.row
.col-sm-6
form(role='form', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
.input-group
input.form-control(type='text', name='telephone', placeholder='Phone Number (international format)')

View File

@ -21,7 +21,7 @@ block content
.row
.col-sm-6
form(role='form', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
.input-group
input.form-control(type='text', name='telephone', placeholder='Phone Number')

View File

@ -42,7 +42,7 @@ block content
.col-sm-5
h3 Make Payment
form(role='form', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label.control-label(for='user') Phone, Email or Venmo User ID
input.form-control(type='text', name='user', id='user', placeholder='15555555555', autofocus=true)

View File

@ -5,7 +5,7 @@ block content
h3 Contact Form
form.form-horizontal(role='form', method='POST')
input(type='hidden', name='_csrf', value=token)
input(type='hidden', name='_csrf', value=_csrf)
.form-group
label(class='col-sm-2 control-label', for='name') Name
.col-sm-8

View File

@ -5,6 +5,7 @@ html
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
meta(name='description', content='')
meta(name='csrf-token', content=_csrf)
meta(name='author', content='')
title #{title} | Hackathon Starter
!= css('styles')