login page 100%

This commit is contained in:
AdrienLSH
2024-01-16 09:36:07 +01:00
parent ff85c1d30c
commit 0edb865ad8
3 changed files with 42 additions and 22 deletions

View File

@ -1,4 +1,4 @@
function clear(property_name, elements_id)
export function clear(property_name, elements_id)
{
elements_id.forEach(element_id => {
let element = document.getElementById(element_id)
@ -6,7 +6,7 @@ function clear(property_name, elements_id)
});
}
function fill_errors(errors, property_name)
export function fill_errors(errors, property_name)
{
Object.keys(errors).forEach(error_field =>
{
@ -14,5 +14,3 @@ function fill_errors(errors, property_name)
element[property_name] = errors[error_field];
});
}
export {fill_errors, clear}