diff --git a/modules/users/client/views/admin/edit-user.client.view.html b/modules/users/client/views/admin/edit-user.client.view.html index 6a2795f625..e7cc0d2b65 100644 --- a/modules/users/client/views/admin/edit-user.client.view.html +++ b/modules/users/client/views/admin/edit-user.client.view.html @@ -7,22 +7,25 @@

User

- +

First name is required.

- +

Last name is required.

-
+
- + +
+

At least one role is required.

+
diff --git a/modules/users/client/views/admin/list-users.client.view.html b/modules/users/client/views/admin/list-users.client.view.html index 4ef28d4b40..62a907d13c 100644 --- a/modules/users/client/views/admin/list-users.client.view.html +++ b/modules/users/client/views/admin/list-users.client.view.html @@ -12,6 +12,7 @@

Users

diff --git a/modules/users/server/models/user.server.model.js b/modules/users/server/models/user.server.model.js index bcaff5d84b..e7c0af0861 100644 --- a/modules/users/server/models/user.server.model.js +++ b/modules/users/server/models/user.server.model.js @@ -85,7 +85,8 @@ var UserSchema = new Schema({ type: String, enum: ['user', 'admin'] }], - default: ['user'] + default: ['user'], + required: 'Please provide at least one role' }, updated: { type: Date