feat: register org process (#558)

* feat: register new organisation

* feat: create org request in management

* fix: tests

* Update internal/ui/login/static/i18n/en.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/static/i18n/de.yaml

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/static/templates/register_org.html

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/handler/register_org_handler.go

Co-authored-by: Livio Amstutz <[email protected]>

* Update internal/ui/login/handler/register_org_handler.go

Co-authored-by: Livio Amstutz <[email protected]>

* fix: remove autocomplete

* fix: regenerate proto

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2020-08-06 14:38:19 +02:00
committed by GitHub
co-authored by Livio Amstutz
parent 41fa434439
commit f80367b49a
42 changed files with 15492 additions and 7875 deletions
@@ -0,0 +1,21 @@
function RenderDefaultLoginnameSuffix() {
let orgNameText = document.getElementById("orgname").value;
let userName = document.getElementById("username");
let defaultLoginNameSuffix = document.getElementById("default-login-suffix");
let iamDomain = userName.dataset.iamDomain;
let orgDomain = orgNameText.replace(" ", "-");
if (orgDomain !== "") {
defaultLoginNameSuffix.innerText = "@" + orgDomain.toLowerCase() + "." + iamDomain;
} else {
defaultLoginNameSuffix.innerText = "";
}
}
window.addEventListener('DOMContentLoaded', (event) => {
RenderDefaultLoginnameSuffix();
});
document.getElementById("orgname").addEventListener('input', function () {
RenderDefaultLoginnameSuffix();
});