Skip to content

Commit

Permalink
fix ssl #11
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhamFadel committed Oct 27, 2021
1 parent 7e79919 commit 5a4f107
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion server/database/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ switch (NODE_ENV) {
}
const options = {
connectionString: dbUrl,
ssl: false,
ssl: { rejectUnauthorized: false },

};
module.exports = new Pool(options);
1 change: 0 additions & 1 deletion server/utils/validation/signUpSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ module.exports = joi.object({
username: joi.string().required(),
email: joi.string().email().required(),
password: joi.string().min(5).required(),
// like +911234567890
phone: joi.string().length(10).required(),
});

0 comments on commit 5a4f107

Please sign in to comment.