Retouch to signin screen

This commit is contained in:
Chris Mann 2023-08-21 07:37:08 +02:00
parent 93d8578d55
commit c6496a6de8

View file

@ -137,6 +137,9 @@
username = document.getElementById("username"); username = document.getElementById("username");
defaultdomain = document.getElementById("defaultdomain"); defaultdomain = document.getElementById("defaultdomain");
mail = document.getElementById("mail"); mail = document.getElementById("mail");
if (!username.value.includes("@")) {
username.value += "@" + defaultdomain.value;
}
mail.value = username.value + "@" + defaultdomain.value; mail.value = username.value + "@" + defaultdomain.value;
} }
document.getElementById("givenname").addEventListener("change", changeGivenNameOrSurname); document.getElementById("givenname").addEventListener("change", changeGivenNameOrSurname);