Skip to main content

Hey,

in our community we offer 2 login methods: 

  • local login
  • SSO for staff who have registered their account with professional email

since SSO login is only for a small portion of our members, I was wondering if there was any easy way to switch the order in which these 2 options show up. Right now it’s SSO first then local login.

I would like local login first and then SSO.

any idea?

 

Hey ​@jvdc 👋,

This would need some custom code. Here’s a solution using JavaScript:

<script>
document.addEventListener("DOMContentLoaded", function () {
if (window.location.href === "URL TO YOUR PRIVATE LOGIN PAGE") {
const boxContent = document.querySelector('.box__content');
const modalLogin = document.getElementById('modal_login');

if (boxContent && modalLogin) {
boxContent.appendChild(modalLogin);
}
}
});
</script>

Let me know if it works!


Thanks ​@olimarrio , works like a charm!


Reply