Bug Fixing

This commit is contained in:
Chris Mann 2023-07-27 12:46:02 +02:00
parent 86f6963e84
commit 47fdaa0f84

View file

@ -129,7 +129,8 @@ function changeUsername () {
displayname = document.getElementById("displayname");
username = document.getElementById("username");
mail = document.getElementById("mail");
mail.value = username.value + "@{{ .NewUserDefaultDomain }}";
defaultdomain = document.getElementById("defaultdomain");
mail.value = username.value + "@" + defaultdomain.value;
}
document.getElementById("givenname").addEventListener("change",changeGivenNameOrSurname);
document.getElementById("surname").addEventListener("change",changeGivenNameOrSurname);