feature(email): add ability to verify current email

This commit is contained in:
Berkeley Martinez
2016-06-02 15:23:49 -07:00
parent 56844a5e80
commit e29a2a9716
3 changed files with 35 additions and 7 deletions

View File

@@ -15,8 +15,7 @@ block content
.form-group
input.input-lg.form-control(type='email', name='email', id='email', value=user.email || '', placeholder=user.email || 'Enter your new email', autofocus, required, autocomplete="off")
.form-group
button.btn.btn-lg.btn-primary.btn-block(type='submit')
| Update my Email
button.btn.btn-lg.btn-primary.btn-block(type='submit')= !user.email || user.emailVerified ? 'Update my Email' : 'Verify Email'
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/settings')
| Go back to Settings