Convert password change dialog
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user