Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Chatgpt clone added #260

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

praptisharma28
Copy link
Contributor

Fixes Issue🛠️

Closes #252

Description👨‍💻

Added a gpt clone made on mern stack

Checklist✅

  • [] My code follows the style guidelines of this project
  • [] I have performed a self-review of my own code
  • [] I have added demonstration in the form of GIF/video file
  • [] I am an Open Source Contributor

Screenshots/GIF📷

added in readme

Chatgpt_Clone/controllers/authController.js Fixed Show fixed Hide fixed
Chatgpt_Clone/controllers/authController.js Fixed Show fixed Hide fixed
Chatgpt_Clone/routes/authRoutes.js Fixed Show fixed Hide fixed
Chatgpt_Clone/routes/authRoutes.js Fixed Show fixed Hide fixed
try {
const { username, email, password } = req.body;
// Check if email already exists
const existingEmail = await userModel.findOne({ email });

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.
return next(new errorResponse("Please provide email and password", 400));
}
// Find user by email
const user = await userModel.findOne({ email });

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.
const router = express.Router();

// Register route
router.post("/register", registerController);

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
router.post("/register", registerController);

// Login route
router.post("/login", loginController);

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
@praptisharma28
Copy link
Contributor Author

@Kritika30032002 the checks are failing coz codeql file is written wrong, swift is mentioned in it and it is a React repo, I have corrected them in this PR only, the checks won't fail once the Codeql is corrected, repo is all fine , so you can merge it ithout any worries. Thanks for ur time. :)

@Kritika30032002 Kritika30032002 merged commit 7358547 into Kritika30032002:main Feb 2, 2024
1 of 2 checks passed
@Kritika30032002
Copy link
Owner

Thanks for your Valuable contribution.
Don't forget to star the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chatgpt clone with documentation
2 participants