Skip to content

Commit

Permalink
Enhance email validation proccess (#7894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan authored Nov 2, 2022
1 parent 0a9890c commit d2038d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/enhancement-optimize-email-validation
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Optimize email validation in the user management app

We've optimized the email validation process while creating users in the user management app to provide
a better user experience.

https://github.com/owncloud/web/pull/7894
https://github.com/owncloud/web/issues/7806
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
:error-message="formData.email.errorMessage"
type="email"
:fix-message-line="true"
@input="onInputEmail"
@change="validateEmail"
/>
<oc-text-input
Expand Down Expand Up @@ -100,6 +101,14 @@ export default {
}
},
methods: {
onInputEmail() {
if (!EmailValidator.validate(this.user.mail)) {
return
}
this.formData.email.errorMessage = ''
this.formData.email.valid = true
},
validateUserName() {
this.formData.userName.valid = false
Expand Down

0 comments on commit d2038d8

Please sign in to comment.