Files
shared/packages/media-shared-assets/public/js/auth/auth-reset-request.js
T

15 lines
415 B
JavaScript
Raw Normal View History

(() => {
const emailInput = document.getElementById('resetEmail');
if (!emailInput || !window.NCAuthForm || typeof window.NCAuthForm.bindJsonSubmit !== 'function') {
return;
}
window.NCAuthForm.bindJsonSubmit({
endpoint: '/auth/reset/request',
formId: 'resetReqForm',
resultId: 'resetResult',
buildPayload() {
return { email: emailInput.value };
},
});
})();