Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"postman.settings.dotenv-detection-notification-visibility": false
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**Coolchop**
---
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
6 changes: 3 additions & 3 deletions backend/controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ exports.login = async (req, res) => {
// Signup function
exports.signup = async (req, res) => {
try {
const { name, email, phone, password, profileImage } = req.body;
const { name, email, phone, password } = req.body;

if (!name || !email || !phone || !password || !profileImage) {
if (!name || !email || !phone || !password) {
return res.status(400).json({ error: "All fields are required" });
}

Expand All @@ -112,7 +112,7 @@ exports.signup = async (req, res) => {
email,
phone,
password: hashedPassword,
profileImage,
// profileImage,
});

res.status(201).json({
Expand Down
2 changes: 1 addition & 1 deletion backend/controllers/reviewController.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Review = require('../models/reviews');
const Review = require('../models/Reviews');

// Add a new review for a restaurant
exports.addReview = async (req, res) => {
Expand Down
3 changes: 0 additions & 3 deletions backend/controllers/uploadController.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ exports.uploadUserImage = (req, res) => {
res.json({ success: true, url: imageUrl, imageName : req.file.filename });
});
};



Binary file modified backend/coolchop.sqlite
Binary file not shown.
8 changes: 4 additions & 4 deletions backend/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const User = sequelize.define('User', {
type: DataTypes.STRING,
allowNull: false
},
profileImage: {
type: DataTypes.STRING,
allowNull: true
},
// profileImage: {
// type: DataTypes.STRING,
// allowNull: true
// },
code: {
type: DataTypes.STRING,
allowNull: true
Expand Down
Loading