Browse Source

raaah same

master
asyncnomi 3 years ago
parent
commit
40fd5b1e60
  1. 2
      index.js

2
index.js

@ -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"

Loading…
Cancel
Save