mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
Allowed editing member's email
no issue - After investigating effects of allowing editing email there were no significant blockers found, so there is no reason not to allow editing this field
This commit is contained in:
parent
b5183204e9
commit
b9db9fa15e
@ -20,6 +20,12 @@
|
||||
"maxLength": 191,
|
||||
"pattern": "^([^,]|$)"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 191,
|
||||
"pattern": "^([^,]|$)"
|
||||
},
|
||||
"note": {
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
@ -34,9 +40,6 @@
|
||||
"id": {
|
||||
"strip": true
|
||||
},
|
||||
"email": {
|
||||
"strip": true
|
||||
},
|
||||
"labels": {
|
||||
"$ref": "members#/definitions/member-labels"
|
||||
},
|
||||
|
@ -168,8 +168,8 @@ describe('Members API', function () {
|
||||
jsonResponse.members.should.have.length(1);
|
||||
localUtils.API.checkResponse(jsonResponse.members[0], 'member', 'stripe');
|
||||
jsonResponse.members[0].name.should.equal(memberChanged.name);
|
||||
jsonResponse.members[0].email.should.not.equal(memberChanged.email);
|
||||
jsonResponse.members[0].email.should.equal(memberToChange.email);
|
||||
jsonResponse.members[0].email.should.equal(memberChanged.email);
|
||||
jsonResponse.members[0].email.should.not.equal(memberToChange.email);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user