aboutsummaryrefslogtreecommitdiffstats
path: root/settings/src/components/userList.vue
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-19 00:20:14 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-31 13:40:47 +0200
commitab6688fe0b4b380dc25916679f8f77f12380c12f (patch)
treef787cd6f1ce670489e57a83bd4b2e4324dc6d894 /settings/src/components/userList.vue
parent36326e38a08a4269416b6defe460e2a65609ad9a (diff)
downloadnextcloud-server-ab6688fe0b4b380dc25916679f8f77f12380c12f.tar.gz
nextcloud-server-ab6688fe0b4b380dc25916679f8f77f12380c12f.zip
Set display name (if specified) when a new user is created
Although the form to create a new user included a field to set the display name its value was not taken into account, so the new user ended with the default display name (the same as the user name). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'settings/src/components/userList.vue')
-rw-r--r--settings/src/components/userList.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/src/components/userList.vue b/settings/src/components/userList.vue
index 37c79671540..0649575bf88 100644
--- a/settings/src/components/userList.vue
+++ b/settings/src/components/userList.vue
@@ -324,6 +324,7 @@ export default {
this.$store.dispatch('addUser', {
userid: this.newUser.id,
password: this.newUser.password,
+ displayName: this.newUser.displayName,
email: this.newUser.mailAddress,
groups: this.newUser.groups.map(group => group.id),
subadmin: this.newUser.subAdminsGroups.map(group => group.id),