-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
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
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
user-provided value
const router = express.Router(); | ||
|
||
// Register route | ||
router.post("/register", registerController); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
router.post("/register", registerController); | ||
|
||
// Login route | ||
router.post("/login", loginController); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
@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. :) |
Thanks for your Valuable contribution. |
Fixes Issue🛠️
Closes #252
Description👨💻
Added a gpt clone made on mern stack
Checklist✅
Screenshots/GIF📷
added in readme