fix: Sending wrong error value to the user
This commit is contained in:
parent
ce6e48db2b
commit
806a6ac31e
@ -59,7 +59,7 @@ export const actions = {
|
|||||||
status: 401,
|
status: 401,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return setError(form, 'password', (e as APIError).body.message as string);
|
return setError(form, 'password', (e as APIError).message as string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ export const actions = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return setError(form, 'verify', (e as APIError).body.message as string);
|
return setError(form, 'verify', (e as APIError).message as string);
|
||||||
}
|
}
|
||||||
|
|
||||||
return message(form, 'Successfuly signed in.');
|
return message(form, 'Successfuly signed in.');
|
||||||
|
Loading…
Reference in New Issue
Block a user