diff --git a/src/components/UsersForm.vue b/src/components/UsersForm.vue index 23a985cd..32de2a11 100644 --- a/src/components/UsersForm.vue +++ b/src/components/UsersForm.vue @@ -36,7 +36,7 @@ diff --git a/src/pages/Profile.vue b/src/pages/Profile.vue index ce40d2d7..9299a738 100644 --- a/src/pages/Profile.vue +++ b/src/pages/Profile.vue @@ -42,32 +42,35 @@
+ >{{ casMemberMetadata.fields.firstName.label }} +
+ >{{ casMemberMetadata.fields.lastName.label }}
@@ -127,8 +130,8 @@ export default { validations () { return { member: { - title: this.casMemberMetadata.fields.title.createValidator(), - name: this.casMemberMetadata.fields.name.createValidator(), + firstName: this.casMemberMetadata.fields.firstName.createValidator(), + lastName: this.casMemberMetadata.fields.lastName.createValidator(), email: this.casMemberMetadata.fields.email.createValidator() } } diff --git a/src/store.js b/src/store.js index 287a22f1..70893c43 100644 --- a/src/store.js +++ b/src/store.js @@ -2895,7 +2895,7 @@ export default new Vuex.Store({ class Member extends casServer.metadata.models.Member { prepareForSubmit (verb, url, data) { if (verb === this.constructor.__verbs__.update) { - let allowedFields = ['name'] + let allowedFields = ['firstName', 'lastName'] for (let field in data) { if (!allowedFields.includes(field)) { delete data[field]