From 7ca0fe2ac4114e505ac895c08da3786398c45129 Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Wed, 18 Feb 2026 18:58:43 -0500 Subject: [PATCH] clean: remove commented code --- src/gui/src/UI/UIWindowChangePassword.js | 36 ------------------------ 1 file changed, 36 deletions(-) diff --git a/src/gui/src/UI/UIWindowChangePassword.js b/src/gui/src/UI/UIWindowChangePassword.js index 2fb11ac71..d7da2fd1d 100644 --- a/src/gui/src/UI/UIWindowChangePassword.js +++ b/src/gui/src/UI/UIWindowChangePassword.js @@ -188,42 +188,6 @@ async function UIWindowChangePassword (options) { onError(data.message || res.statusText || 'Request failed'); }); - // function openRevalidatePopup (revalidateUrl, onDone) { - // const url = revalidateUrl || (window.user && window.user.oidc_revalidate_url); - // if ( ! url ) { - // onDone && onDone(new Error('No revalidate URL')); - // return null; - // } - // let doneCalled = false; - // const hint = $(el_window).find('.change-password-oidc-hint'); - // hint.text(i18n('revalidate_sign_in_popup') || 'Sign in with your linked account in the popup.').show(); - // const popup = window.open(url, 'puter-revalidate', 'width=500,height=600'); - // const onMessage = (ev) => { - // if ( (ev.origin !== window.gui_origin) && (ev.origin !== window.location.origin) ) return; - // if ( !ev.data || ev.data.type !== 'puter-revalidate-done' ) return; - // if ( doneCalled ) return; - // doneCalled = true; - // window.removeEventListener('message', onMessage); - // revalidated = true; - // hint.hide(); - // $(el_window).find('.change-password-revalidated-msg').text(i18n('revalidated') || 'Re-validated.').show(); - // $(el_window).find('.change-password-revalidate-btn').hide(); - // onDone && onDone(); - // }; - // window.addEventListener('message', onMessage); - // const checkClosed = setInterval(() => { - // if ( popup && popup.closed ) { - // clearInterval(checkClosed); - // window.removeEventListener('message', onMessage); - // hint.hide(); - // if ( ! doneCalled ) { - // doneCalled = true; - // onDone && onDone(new Error('Popup closed')); - // } - // } - // }, 300); - // return popup; - // } function doSubmit ({ new_password, current_password }) { return fetch(apiUrl, { method: 'POST',