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:
Nazar Gargol 2020-02-21 16:00:13 +08:00
parent b5183204e9
commit b9db9fa15e
2 changed files with 8 additions and 5 deletions

View File

@ -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"
},

View File

@ -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);
});
});
});