set default login realm in login page
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
4f1c6a1e10
commit
fc0e878353
@ -10,6 +10,9 @@ async function init (){
|
||||
let realmSelect = document.querySelector("#realm");
|
||||
realms.data.forEach((element) => {
|
||||
realmSelect.add(new Option(element.comment, element.realm));
|
||||
if("default" in element && element.default === 1){
|
||||
realmSelect.value = element.realm;
|
||||
}
|
||||
});
|
||||
formSubmitButton.addEventListener("click", async (e) => {
|
||||
status.innerText = "";
|
||||
|
Loading…
Reference in New Issue
Block a user