Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b128cfeb authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

fix: redirect users to sso login using /login

parent a56dbc0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function() {
	// NEW: redirect ONLY when .login-form__link is clicked
	document.addEventListener('click', function(event) {
		if (event.target.closest('.login-form__link')) {
			window.location.href = '/';
			window.location.href = '/login';
		}
		  // Look for the Back button only inside the passwordless login container
		const backBtn = event.target.closest(
@@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', function() {
		);
		if (backBtn) {
			event.preventDefault();
			window.location.href = '/';
			window.location.href = '/login';
		}
	});
	if (window.location.href.includes("?showResetPassword=1")) {