4949 <span class =" row__subtitle" >{{ user.id }}</span >
5050 </td >
5151
52- <td
53- data-cy-user-list-cell-password
54- class =" row__cell"
55- :class =" { 'row__cell--obfuscated': hasObfuscated }" >
56- <template v-if =" editing && settings .canChangePassword && user .backendCapabilities .setPassword " >
57- <NcTextField
58- v-model =" editedPassword"
59- class =" user-row-text-field"
60- data-cy-user-list-input-password
61- :data-loading =" loading.password || undefined"
62- :trailing-button-label =" t('settings', 'Submit')"
63- :class =" { 'icon-loading-small': loading.password }"
64- :show-trailing-button =" true"
65- :disabled =" loading.password || isLoadingField"
66- :minlength =" minPasswordLength"
67- maxlength =" 469"
68- :label =" t('settings', 'Set new password')"
69- trailing-button-icon =" arrowEnd"
70- autocapitalize =" off"
71- autocomplete =" new-password"
72- required
73- spellcheck =" false"
74- type =" password"
75- @trailing-button-click =" updatePassword" />
76- </template >
77- <span v-else-if =" isObfuscated" >
78- {{ t('settings', 'You do not have permissions to see the details of this account') }}
79- </span >
80- </td >
81-
8252 <td class =" row__cell" data-cy-user-list-cell-email >
8353 <template v-if =" editing " >
8454 <NcTextField
10575 </span >
10676 </td >
10777
108- <td class =" row__cell row__cell--large row__cell--multiline" data-cy-user-list-cell-groups >
78+ <td class =" row__cell row__cell--groups row__cell--multiline" data-cy-user-list-cell-groups >
10979 <template v-if =" editing " >
11080 <label
11181 class =" hidden-visually"
@@ -361,11 +331,6 @@ export default {
361331 required: true ,
362332 },
363333
364- hasObfuscated: {
365- type: Boolean ,
366- required: true ,
367- },
368-
369334 quotaOptions: {
370335 type: Array ,
371336 required: true ,
@@ -398,7 +363,6 @@ export default {
398363 loading: {
399364 all: false ,
400365 displayName: false ,
401- password: false ,
402366 mailAddress: false ,
403367 groups: false ,
404368 groupsDetails: false ,
@@ -413,7 +377,6 @@ export default {
413377 },
414378
415379 editedDisplayName: this .user .displayname ,
416- editedPassword: ' ' ,
417380 editedMail: this .user .email ?? ' ' ,
418381 // Cancelable promise for search groups request
419382 promise: null ,
@@ -768,29 +731,6 @@ export default {
768731 }
769732 },
770733
771- /**
772- * Set user password
773- */
774- async updatePassword () {
775- this .loading .password = true
776- if (this .editedPassword .length === 0 ) {
777- showError (t (' settings' , " Password can't be empty" ))
778- this .loading .password = false
779- } else {
780- try {
781- await this .$store .dispatch (' setUserData' , {
782- userid: this .user .id ,
783- key: ' password' ,
784- value: this .editedPassword ,
785- })
786- this .editedPassword = ' '
787- showSuccess (t (' settings' , ' Password was successfully changed' ))
788- } finally {
789- this .loading .password = false
790- }
791- }
792- },
793-
794734 /**
795735 * Set user mailAddress
796736 */
0 commit comments