Removed if-check for local auth on change password form

This commit is contained in:
Sahat Yalkabov
2014-04-13 17:19:11 -04:00
parent 093ca98466
commit 263af71d90

View File

@@ -41,26 +41,24 @@ block content
i.fa.fa-magnet i.fa.fa-magnet
| Update Profile | Update Profile
.page-header
h3 Change Password
if secrets.localAuth form.form-horizontal(action='/account/password', method='POST')
.page-header input(type='hidden', name='_csrf', value=_csrf)
h3 Change Password .form-group
label.col-sm-3.control-label(for='password') New Password
form.form-horizontal(action='/account/password', method='POST') .col-sm-4
input(type='hidden', name='_csrf', value=_csrf) input.form-control(type='password', name='password', id='password')
.form-group .form-group
label.col-sm-3.control-label(for='password') New Password label.col-sm-3.control-label(for='confirmPassword') Confirm Password
.col-sm-4 .col-sm-4
input.form-control(type='password', name='password', id='password') input.form-control(type='password', name='confirmPassword', id='confirmPassword')
.form-group .form-group
label.col-sm-3.control-label(for='confirmPassword') Confirm Password .col-sm-offset-3.col-sm-4
.col-sm-4 button.btn.btn.btn-primary(type='submit')
input.form-control(type='password', name='confirmPassword', id='confirmPassword') i.fa.fa-keyboard-o
.form-group | Change Password
.col-sm-offset-3.col-sm-4
button.btn.btn.btn-primary(type='submit')
i.fa.fa-keyboard-o
| Change Password
.page-header .page-header
h3 Delete Account h3 Delete Account