Linked profiles are determined dynamically
This commit is contained in:
@ -28,6 +28,7 @@ exports.postAccountProfile = function(req, res) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// todo: change to change postPassword
|
||||||
exports.postAccountSettings = function(req, res) {
|
exports.postAccountSettings = function(req, res) {
|
||||||
console.log('okay!!');
|
console.log('okay!!');
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,7 @@ block content
|
|||||||
#basic.tab-pane.fade.active.in
|
#basic.tab-pane.fade.active.in
|
||||||
.pahe-header
|
.pahe-header
|
||||||
h3 Profile Information
|
h3 Profile Information
|
||||||
|
|
||||||
form.form-horizontal(action='/account/profile', method='POST')
|
form.form-horizontal(action='/account/profile', method='POST')
|
||||||
.form-group
|
.form-group
|
||||||
label.col-sm-2.control-label(for='name') Name
|
label.col-sm-2.control-label(for='name') Name
|
||||||
@ -43,6 +44,7 @@ block content
|
|||||||
#settings.tab-pane.fade
|
#settings.tab-pane.fade
|
||||||
.page-header
|
.page-header
|
||||||
h3 Change Password
|
h3 Change Password
|
||||||
|
|
||||||
form.form-horizontal(action='/account/profile', method='POST')
|
form.form-horizontal(action='/account/profile', method='POST')
|
||||||
.form-group
|
.form-group
|
||||||
label.col-sm-3.control-label(for='password') Password
|
label.col-sm-3.control-label(for='password') Password
|
||||||
@ -55,22 +57,37 @@ block content
|
|||||||
.form-group
|
.form-group
|
||||||
.col-sm-offset-3.col-sm-4
|
.col-sm-offset-3.col-sm-4
|
||||||
button.btn.btn.btn-primary(type='submit') Change Password
|
button.btn.btn.btn-primary(type='submit') Change Password
|
||||||
|
|
||||||
.page-header
|
.page-header
|
||||||
h3 Delete Account
|
h3 Delete Account
|
||||||
|
|
||||||
p You can delete your account, but keep in mind this action is irreversiable.
|
p You can delete your account, but keep in mind this action is irreversiable.
|
||||||
form(action='/account/delete', method='POST')
|
form(action='/account/delete', method='POST')
|
||||||
button.btn.btn-danger(type='submit') Delete my account
|
button.btn.btn-danger(type='submit') Delete my account
|
||||||
|
|
||||||
.page-header
|
.page-header
|
||||||
h3 Linked Accounts
|
h3 Linked Accounts
|
||||||
p
|
|
||||||
a.text-danger(href='#') Unlink your Google account
|
if user.google
|
||||||
p
|
p: a.text-danger(href='#') Unlink your Google account
|
||||||
a(href='#') Link your Facebook account
|
else
|
||||||
p
|
p: a(href='#') Link your Google account
|
||||||
a(href='#') Link your Twitter account
|
|
||||||
p
|
if user.facebook
|
||||||
a(href='#') Link your GitHub account
|
p: a.text-danger(href='#') Unlink your Facebook account
|
||||||
|
else
|
||||||
|
p: a(href='#') Link your Facebook account
|
||||||
|
|
||||||
|
if user.twitter
|
||||||
|
p: a.text-danger(href='#') Unlink your Twitter account
|
||||||
|
else
|
||||||
|
p: a(href='#') Link your Twitter account
|
||||||
|
|
||||||
|
if user.github
|
||||||
|
p: a.text-danger(href='#') Unlink your GitHub account
|
||||||
|
else
|
||||||
|
p: a(href='#') Link your GitHub account
|
||||||
|
|
||||||
|
|
||||||
if messages.length
|
if messages.length
|
||||||
.alert.alert-danger
|
.alert.alert-danger
|
||||||
|
Reference in New Issue
Block a user