raaah same

This commit is contained in:
asyncnomi 2023-01-08 22:22:13 +01:00
parent edfb7e80bf
commit 40fd5b1e60

View file

@ -140,7 +140,7 @@ fastify.post('/register', async (request, reply) => {
let content = request.body;
if (content.hasOwnProperty("user")
&& content.hasOwnProperty("password")) {
if (UsersBDD.hasOwnProperty(content.user) {
if (UsersBDD.hasOwnProperty(content.user)) {
return {
success: false,
why: "This user already exists"