diff options
author | Vladimir Novikov <MeVladimirNovikov@gmail.com> | 2025-04-24 14:24:23 +0300 |
---|---|---|
committer | Gunnar Mills <gunnar@gmills.xyz> | 2025-06-02 18:31:08 +0300 |
commit | 7fb9bb4f60eef821fb3964888a25cbc4e4e54718 (patch) | |
tree | 03f5a4bc815f29b5d477221bf8ced0fb839e39d0 | |
parent | 34e78de5a403f8f79d2efb881ee7b37619a3e6b9 (diff) | |
download | webui-vue-master.tar.xz |
@vuelidate/validators ^2.0.0 does not support literal strings as
references for sameAs. They instead treated as literal strings and it
means that the password confirmation must exactly match the passed
string which is obviously incorrect.
This essentially is just a correction of some artifacts caused by the
upgrade to Vue 3.
Change-Id: I41f6a1764c2dd3fcfbfd96d2da9b48e6e409fef0
Signed-off-by: Vladimir Novikov <MeVladimirNovikov@gmail.com>
-rw-r--r-- | src/views/ChangePassword/ChangePassword.vue | 2 | ||||
-rw-r--r-- | src/views/ProfileSettings/ProfileSettings.vue | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/views/ChangePassword/ChangePassword.vue b/src/views/ChangePassword/ChangePassword.vue index a6ac5aba3..18d9dcca5 100644 --- a/src/views/ChangePassword/ChangePassword.vue +++ b/src/views/ChangePassword/ChangePassword.vue @@ -108,7 +108,7 @@ export default { password: { required }, passwordConfirm: { required, - sameAsPassword: sameAs('password'), + sameAsPassword: sameAs(this.form.password), }, }, }; diff --git a/src/views/ProfileSettings/ProfileSettings.vue b/src/views/ProfileSettings/ProfileSettings.vue index 561816e00..73ee63f0f 100644 --- a/src/views/ProfileSettings/ProfileSettings.vue +++ b/src/views/ProfileSettings/ProfileSettings.vue @@ -207,7 +207,7 @@ export default { maxLength: maxLength(this.passwordRequirements.maxLength), }, confirmPassword: { - sameAsPassword: sameAs('newPassword'), + sameAsPassword: sameAs(this.form.newPassword), }, }, }; |