Refactor Email Update URL Change
This commit is contained in:
@ -506,7 +506,7 @@ a[href="/email-signup"], a[href="/email-signin"] {
|
||||
}
|
||||
}
|
||||
|
||||
form.email-update .btn{
|
||||
form.update-email .btn{
|
||||
margin:0;
|
||||
width:40%;
|
||||
display:inline-block;
|
||||
|
@ -241,7 +241,7 @@ module.exports = function(app) {
|
||||
if (!req.user) {
|
||||
return res.redirect('/');
|
||||
}
|
||||
return res.render('account/email-update', {
|
||||
return res.render('account/update-email', {
|
||||
title: 'Update your Email'
|
||||
});
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ block content
|
||||
p.large-p.text-center
|
||||
em #{user.email}
|
||||
.col-xs-12
|
||||
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/email-update')
|
||||
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/update-email')
|
||||
i.fa.fa-envelope
|
||||
| Update my Email
|
||||
.row
|
||||
@ -100,7 +100,7 @@ block content
|
||||
p.large-p.text-center
|
||||
| You don't have an email id associated to this account.
|
||||
.col-xs-12
|
||||
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/email-update')
|
||||
a.btn.btn-lg.btn-block.btn-primary.btn-link-social(href='/update-email')
|
||||
i.fa.fa-envelope
|
||||
| Update my Email
|
||||
|
||||
|
@ -8,7 +8,7 @@ block content
|
||||
span.ion-close-circled#flash-close
|
||||
#flash-content
|
||||
h2.text-center Update your email address here:
|
||||
form.form-horizontal.email-update(method='POST', action='/api/users/#{user.id}/update-email', name="updateEmailForm")
|
||||
form.form-horizontal.update-email(method='POST', action='/api/users/#{user.id}/update-email', name="updateEmailForm")
|
||||
.row
|
||||
.col-sm-6.col-sm-offset-3
|
||||
input(type='hidden', name='_csrf', value=_csrf)
|
Reference in New Issue
Block a user