From 110384c3eba312903aee16278efb73c302c0c8f5 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Thu, 2 May 2024 16:18:59 +0530 Subject: [PATCH] login with device click --- core/js/custom-login.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/js/custom-login.js b/core/js/custom-login.js index 6d0a50bd..12b6ad6b 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(); + } + } }) -- GitLab