mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Removed email update directly using member session auth
refs https://github.com/TryGhost/members.js/issues/30 - Member cannot update their email directly but need to do it via magic link sent to new email address - Previous profile update change had allowed email to be updated directly as well for authenticated member
This commit is contained in:
parent
6871b96d7d
commit
3471a21bc3
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ const getMemberData = async function (req, res) {
|
|||
|
||||
const updateMemberData = async function (req, res) {
|
||||
try {
|
||||
const data = _.pick(req.body, 'email', 'name', 'subscribed');
|
||||
const data = _.pick(req.body, 'name', 'subscribed');
|
||||
const member = await membersService.ssr.getMemberDataFromSession(req, res);
|
||||
if (member) {
|
||||
const updatedMember = await membersService.api.members.update(data, {id: member.id});
|
||||
|
|
Loading…
Add table
Reference in a new issue