diff --git a/src_assets/common/assets/web/welcome.html b/src_assets/common/assets/web/welcome.html
index bdacf941..08103e34 100644
--- a/src_assets/common/assets/web/welcome.html
+++ b/src_assets/common/assets/web/welcome.html
@@ -11,7 +11,7 @@
-
+
{{ $t('welcome.greeting') }}
@@ -66,7 +66,7 @@
success: false,
loading: false,
passwordData: {
- newUsername: "sunshine",
+ newUsername: "apollo",
newPassword: "",
confirmNewPassword: "",
},
@@ -74,13 +74,17 @@
},
methods: {
save() {
+ if (this.passwordData.newPassword !== this.passwordData.confirmNewPassword) {
+ this.error = "Password mismatch";
+ return;
+ };
this.error = null;
this.loading = true;
fetch("./api/password", {
- method: "POST",
headers: {
'Content-Type': 'application/json'
},
+ method: 'POST',
body: JSON.stringify(this.passwordData),
}).then((r) => {
this.loading = false;