fixing error message when passwords do not match / fixing placeholder image

This commit is contained in:
orangecoding
2026-05-02 20:00:11 +02:00
parent d7ee4f6909
commit 3de82dfa41
7 changed files with 15 additions and 14 deletions

View File

@@ -58,7 +58,7 @@ export default async function userPlugin(fastify) {
const { username, password, password2, isAdmin, userId } = request.body;
if (password !== password2) {
return reply.code(400).send({ error: 'Passwords does not match' });
return reply.code(400).send({ error: 'Passwords do not match.' });
}
if (nullOrEmpty(username) || nullOrEmpty(password) || nullOrEmpty(password2)) {
return reply.code(400).send({ error: 'Username and password are mandatory.' });