Skip to content

Commit

Permalink
Fix input validation for users and groups
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Jan 24, 2023
1 parent 5137524 commit 28c39f5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions changelog/unreleased/change-update-vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ https://github.com/owncloud/web/issues/7948
https://github.com/owncloud/web/issues/5269
https://github.com/owncloud/web/issues/8283
https://github.com/owncloud/web/issues/8307
https://github.com/owncloud/web/issues/8295
https://github.com/owncloud/web/pull/8128
https://github.com/owncloud/web/pull/7877
https://github.com/owncloud/web/pull/8207
Expand All @@ -26,3 +27,4 @@ https://github.com/owncloud/web/pull/8287
https://github.com/owncloud/web/pull/8285
https://github.com/owncloud/web/pull/8288
https://github.com/owncloud/web/pull/8308
https://github.com/owncloud/web/pull/8311
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
:label="$gettext('Group name') + '*'"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
@update:modelValue="validateDisplayName"
/>
<input type="submit" class="oc-hidden" />
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:label="$gettext('Group name')"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
@update:modelValue="validateDisplayName"
/>
<compare-save-dialog
class="edit-compare-save-dialog oc-mb-l"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
:label="$gettext('User name') + '*'"
:error-message="formData.userName.errorMessage"
:fix-message-line="true"
@input="validateUserName"
@update:modelValue="validateUserName"
/>
<oc-text-input
v-model="user.displayName"
class="oc-mb-s"
:label="$gettext('First and last name') + '*'"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
@update:modelValue="validateDisplayName"
/>
<oc-text-input
v-model="user.mail"
Expand All @@ -34,7 +34,7 @@
:error-message="formData.email.errorMessage"
type="email"
:fix-message-line="true"
@input="onInputEmail"
@update:modelValue="onInputEmail"
@change="validateEmail"
/>
<oc-text-input
Expand All @@ -44,7 +44,7 @@
:error-message="formData.password.errorMessage"
type="password"
:fix-message-line="true"
@input="validatePassword"
@update:modelValue="validatePassword"
/>
<input type="submit" class="oc-hidden" />
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:label="$gettext('First and last name')"
:error-message="formData.displayName.errorMessage"
:fix-message-line="true"
@input="validateDisplayName"
@update:modelValue="validateDisplayName"
/>
<oc-text-input
v-model="editUser.mail"
Expand Down

0 comments on commit 28c39f5

Please sign in to comment.