mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-10 16:15:12 +00:00
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:
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user