restructuring, working on password reset email
next steps: - create reset url and add it to the translation fill map - implement message translation - implement otp validation and login
This commit is contained in:
@@ -8,7 +8,16 @@
|
||||
|
||||
async function submit(ev){
|
||||
ev.preventDefault();
|
||||
caption = t('user.sent_email');
|
||||
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/user/reset_pw`;
|
||||
caption = t('user.data_sent');
|
||||
const resp = await fetch(url,{
|
||||
method : 'POST',
|
||||
body : mail
|
||||
});
|
||||
if (resp.ok) {
|
||||
} else {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user