Convert password change dialog

This commit is contained in:
Johannes Zellner
2025-06-11 10:34:58 +02:00
parent af75060001
commit 53b83909ed
5 changed files with 122 additions and 25 deletions
@@ -32,11 +32,14 @@ async function onSubmit() {
if (error) {
if (error.status === 400) formError.value.email = error.body.message;
else if (error.status === 412) formError.value.password = error.body.message;
else formError.value.generic = error.status ? error.body.message : 'Internal error';
else {
formError.value.generic = error.status ? error.body.message : 'Internal error';
console.error('Failed to set fallback email', error);
}
busy.value = false;
return console.error('Failed to set email', error);
return;
}
emit('success');