Implementing Activate User

This commit is contained in:
Chris Mann 2023-07-21 07:50:27 +02:00
parent fd85548bda
commit 94be915475

View file

@ -19,6 +19,7 @@ if (idvalueInput != null) {
function changeUsername () { function changeUsername () {
username = document.getElementById("username"); username = document.getElementById("username");
calcCn = document.getElementById("calc-cn"); calcCn = document.getElementById("calc-cn");
username.value = username.value.toLowerCase().replace(/[^A-z0-9.-]/g, '');
calcCn.innerText = "Login Name et Courriel seront : " + username.value.split("@")[0] + "@lesgv.com"; calcCn.innerText = "Login Name et Courriel seront : " + username.value.split("@")[0] + "@lesgv.com";
} }
if (document.getElementById("username") != null) { if (document.getElementById("username") != null) {