raaah same
This commit is contained in:
parent
edfb7e80bf
commit
40fd5b1e60
1 changed files with 1 additions and 1 deletions
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…
Reference in a new issue