diff --git a/core/js/custom-login.js b/core/js/custom-login.js index 6d0a50bd9e8f4990eb38b58396a3a49cd20a270c..12b6ad6b0b93fa6c171a7d8aef2260b27e349a06 100644 --- a/core/js/custom-login.js +++ b/core/js/custom-login.js @@ -25,5 +25,12 @@ document.addEventListener('DOMContentLoaded', function() { elementLostPassword.click(); } } + if (window.location.href.includes("?showLoginWithDevice=1")) { + var lostPasswordLink = document.getElementById("lost-password"); + if (lostPasswordLink && lostPasswordLink.nextElementSibling) { + var loginWithDeviceLink = lostPasswordLink.nextElementSibling; + loginWithDeviceLink.click(); + } + } })