This commit is contained in:
2018-02-27 19:51:43 +01:00
parent 7332af1dc0
commit 738596a13f
9 changed files with 461 additions and 65 deletions

View File

@@ -17,3 +17,23 @@ function register() {
}
return true;
}
function update_account() {
var password = document.getElementById('password').value;
var confirm = document.getElementById('confirm').value;
if (password != confirm){
alert("Confirmation mot de passe incohérente");
return false;
}
if (password.length > 0 && password.length < 8){
alert("Le mot de passe doit avoir une longueur d'au moins 8 caractères");
return false;
}
return true;
}
function delete_account(id) {
if (confirm("La suppression d'un compte est définitive.\n\nConfirmer ?")) {
document.location='/account/delete/'+id;
}
}