Skip to content

Commit 56d0ee0

Browse files
authored
Remove comments from signup controller
Removed comments regarding validation steps for clarity.
1 parent 9b27e84 commit 56d0ee0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

server/controllers/user.controller/signup.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export const duplicateUserCheck: RequestHandler<
9898
const checkType = req.query.check_type;
9999
const allowedCheckTypes = ['email', 'username'] as const;
100100

101-
// Validate check_type to prevent prototype pollution
102101
if (
103102
!checkType ||
104103
!allowedCheckTypes.includes(checkType as 'email' | 'username')
@@ -110,7 +109,6 @@ export const duplicateUserCheck: RequestHandler<
110109

111110
const value = req.query[checkType];
112111

113-
// Validate that the corresponding value exists
114112
if (!value || typeof value !== 'string' || value.trim().length === 0) {
115113
return res.status(400).json({
116114
error: `Missing or invalid ${checkType} value.`

0 commit comments

Comments
 (0)