add(settings): password changing

This commit is contained in:
AdrienLSH
2024-03-19 13:59:21 +01:00
parent 837ed85001
commit 0371881afa
13 changed files with 234 additions and 99 deletions

View File

@ -1,4 +1,4 @@
export function clear(property_name, elements_id)
export function clearIds(property_name, elements_id)
{
elements_id.forEach(element_id => {
let element = document.getElementById(element_id);
@ -6,6 +6,10 @@ export function clear(property_name, elements_id)
});
}
export function clearElements(prop, elements) {
elements.forEach(element => element[prop] = '');
}
export function fill_errors(errors, property_name)
{
Object.keys(errors).forEach(error_field =>