feature: native auto-login
This commit is contained in:
parent
f1ffcc60b7
commit
857f620ba1
@ -41,7 +41,7 @@ button.loggedIn(role='log in' onclick="document.querySelector('sib-auth').login(
|
|||||||
|
|
||||||
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
|
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
|
||||||
|
|
||||||
sib-auth(style='display:none!important')
|
sib-auth(style='display:none!important', auto-login)
|
||||||
sib-auth-provider(
|
sib-auth-provider(
|
||||||
data-authority=`${authority}`
|
data-authority=`${authority}`
|
||||||
data-id=`${authorityName || "authority"}`
|
data-id=`${authorityName || "authority"}`
|
||||||
|
@ -10,8 +10,6 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
document
|
document
|
||||||
.querySelector('.loggedIn')
|
.querySelector('.loggedIn')
|
||||||
.setAttribute("style", "display:none !important");
|
.setAttribute("style", "display:none !important");
|
||||||
} else {
|
|
||||||
document.querySelector('sib-auth').login();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user