add(settings): password changing

This commit is contained in:
AdrienLSH
2024-03-19 13:59:21 +01:00
parent a3be4681cc
commit 68ceec22eb
13 changed files with 234 additions and 99 deletions

View File

@ -1,5 +1,5 @@
import { client, lang, navigateTo } from "../../index.js";
import { clear, fill_errors } from "../../utils/formUtils.js";
import { clearIds, fill_errors } from "../../utils/formUtils.js";
import AbstractNonAuthenticatedView from "../abstracts/AbstractNonAuthenticatedView.js";
export default class extends AbstractNonAuthenticatedView
@ -141,7 +141,7 @@ export default class extends AbstractNonAuthenticatedView
let response_data = await response.json();
clear("innerHTML", ["username", "password", 'login']);
clearIds("innerHTML", ["username", "password", 'login']);
fill_errors(response_data, "innerHTML");
}