Fix welcome.html
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="card p-2">
|
||||
<header>
|
||||
<h1 class="mb-0">
|
||||
<img src="./images/logo-sunshine-45.png" height="45" alt="">
|
||||
<img src="./images/logo-apollo-45.png" height="45" alt="">
|
||||
{{ $t('welcome.greeting') }}
|
||||
</h1>
|
||||
</header>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user