raaah same
This commit is contained in:
parent
edfb7e80bf
commit
40fd5b1e60
2
index.js
2
index.js
|
@ -140,7 +140,7 @@ fastify.post('/register', async (request, reply) => {
|
||||||
let content = request.body;
|
let content = request.body;
|
||||||
if (content.hasOwnProperty("user")
|
if (content.hasOwnProperty("user")
|
||||||
&& content.hasOwnProperty("password")) {
|
&& content.hasOwnProperty("password")) {
|
||||||
if (UsersBDD.hasOwnProperty(content.user) {
|
if (UsersBDD.hasOwnProperty(content.user)) {
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
why: "This user already exists"
|
why: "This user already exists"
|
||||||
|
|
Loading…
Reference in a new issue