update front-end

This commit is contained in:
xfarrow
2024-02-28 15:13:19 +01:00
parent edcd53e761
commit e62631b42f
5 changed files with 11 additions and 13 deletions

View File

@ -88,7 +88,7 @@ async function login (req, res) {
const token = jwtUtils.generateToken(person.id);
return res.status(200).json({ token });
} else {
return res.status(401).json({ error: 'Unauthorized' });
return res.status(401).json({ error: 'Invalid credentials' });
}
} catch (error) {
console.error(`Error in function ${login.name}: ${error}`);