From 7fb9bb4f60eef821fb3964888a25cbc4e4e54718 Mon Sep 17 00:00:00 2001
From: Vladimir Novikov <MeVladimirNovikov@gmail.com>
Date: Thu, 24 Apr 2025 14:24:23 +0300
Subject: Fix password confirmation validation

@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>
---
 src/views/ProfileSettings/ProfileSettings.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/views/ProfileSettings/ProfileSettings.vue')

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),
         },
       },
     };
-- 
cgit v1.2.3

