From c6496a6de8f0bbeeed1942d2da2c84986ad63536 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Mon, 21 Aug 2023 07:37:08 +0200 Subject: [PATCH] Retouch to signin screen --- templates/user/new.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/user/new.html b/templates/user/new.html index 81b4c79..a6b565b 100644 --- a/templates/user/new.html +++ b/templates/user/new.html @@ -137,6 +137,9 @@ username = document.getElementById("username"); defaultdomain = document.getElementById("defaultdomain"); mail = document.getElementById("mail"); + if (!username.value.includes("@")) { + username.value += "@" + defaultdomain.value; + } mail.value = username.value + "@" + defaultdomain.value; } document.getElementById("givenname").addEventListener("change", changeGivenNameOrSurname);