15 lines
415 B
JavaScript
15 lines
415 B
JavaScript
(() => {
|
|||
|
|
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 };
|
||
|
|
},
|
||
|
|
});
|
||
|
|
})();
|