-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FIX] API Endpoint, Password Validation, File Upload Consistency #217
Comments
@IceCandle ๊ทํ ์๊ฐ ๋ด์ฃผ์ ์ ์ ๋ง ๊ฐ์ฌํฉ๋๋ค. ํผ๋๋ฐฑ์ ๋ํ ๋ต๋ณ์ ๋๋ฆฌ๋๋ก ํ๊ฒ ์ต๋๋ค. ์ง๋ฌธ 1. ์ง๋ฌธ 2. ์ง๋ฌธ 3. ๋ ๋ค๋ฅธ ์ด์๊ฐ ์๋ค๋ฉด ์ ๋ณดํด์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค. ์ฃผ์ ์๊ฒฌ ํ ๋๋ก ๋ ๋์ ์๋น์ค๋ฅผ ๋ง๋ค๋๋ก ํ๊ฒ ์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ๊ฐ์ธ์ ์ผ๋ก ๊ถ๊ธํ ๊ฒ ์๋๋ฐ, ํน์ ์ด ํผ๋๋ฐฑ์ ์ด๋ป๊ฒ ์์ฑํ์ จ๋์? ใ ใ ใ ์ฝ๊ฐ AI์ ๋๋์ด ์๋๋ฐ ํน์ ์ฌ์ฉํ์ จ๋ค๋ฉด ๊ต์ฅํ ์ข์ ๊ธฐ๋ฅ์ ๊ฐ์ง ๊ฑฐ ๊ฐ์์ ์๋ ค์ฃผ์๋ฉด ์ ๋ ํ์ฉํด๋ณด๊ณ ์ถ์ต๋๋ค. ๐ |
localServer/apis.ts์ 83๋ฒ์งธ ์ค์ด path: "user/snuโmail-verification/google-email"์ ๋๋ค. CreateCompanyForm.tsx์์ ์ ๋ ฅ ํ๋๋ฅผ ๋จ๊ณ๋ณ๋ก ๋ถํ ํ๊ฑฐ๋ ํ์ ์นธ์ ํ์ํ๋ฉด UI ๊ฐ์ ์ ๋์์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค. Deepseek R1์ directory structure๋ฅผ ์ฃผ๊ณ ํ์ํ๋ค๊ณ ๋ต๋ณํ ํ์ผ์ ์ฒจ๋ถํ ๋ค์ ํผ๋๋ฐฑ์ ๋ฌ๋ผ๊ณ ์์ฒญํ์ต๋๋ค. |
@IceCandle ๋น ๋ฅธ ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค! ํผ๋๋ฐฑ 2. CreateCompanyForm.tsx์์ ์
๋ ฅ ํ๋๋ฅผ ๋จ๊ณ๋ณ๋ก ๋ถํ ํ๊ฑฐ๋ ํ์ ์นธ์ ํ์ํ๋ฉด UI ๊ฐ์ ์ ๋์์ด ๋ ๊ฒ ๊ฐ์ต๋๋ค. ํผ๋๋ฐฑ 3. Deepseek R1์ directory structure๋ฅผ ์ฃผ๊ณ ํ์ํ๋ค๊ณ ๋ต๋ณํ ํ์ผ์ ์ฒจ๋ถํ ๋ค์ ํผ๋๋ฐฑ์ ๋ฌ๋ผ๊ณ ์์ฒญํ์ต๋๋ค. |
๐ ์ด๋ค ๋ฒ๊ทธ์ธ๊ฐ์?
API Endpoint Typo, Password Regex Mismatch, File Upload Validation Inconsistencies
๐ฉน ์ด๋ค ์ํฉ์์ ๋ฐ์ํ๋ ๋ฒ๊ทธ์ธ๊ฐ์?
In apis.ts, the endpoint
POST /user/snuโmail-verification/google-email
contains a typo (snuโmail
with an em dash)Frontend password validation (PASSWORD_REGEX) allows @#$!^*, while the backend expects @#$%^&+=!
Image Extensions: Frontend allows png, jpg, ..., heic, but backend may not support heif/heic.
File Size Limits: Frontend checks for 1MB (images) and 5MB (PDFs), but backend limits are undefined.
๐ฉน ์์ํ๋ ์ ์์ ์ธ ๊ฒฐ๊ณผ๋ ๋ฌด์์ธ๊ฐ์?
File: signUp/GoogleSocialSignUpButton.tsx
// Before
path: "user/snuโmail-verification/google-email",
// After
path: "user/snu-mail-verification/google-email",
File: feature/auth/presentation/authPresentation.ts
// Before
const PASSWORD_REGEX =
/^(?=.[a-z])(?=.[A-Z])(?=.\d)(?=.[@#$!^])[A-Za-z\d@#$!^]{8,20}$/;
// After
const PASSWORD_REGEX =
/^(?=.[a-z])(?=.[A-Z])(?=.\d)(?=.[@#$%^&+=!])[A-Za-z\d@#$%^&+=!]{8,20}$/;
File: companyPresentation.ts
if (input.file.size > MAX_IMAGE_SIZE) {
setResponseMessage("์ด๋ฏธ์ง๋ 1MB ์ดํ๋ก ์ ๋ก๋ํด์ฃผ์ธ์.");
}
๐ ์ฐธ๊ณ ์๋ฃ
No response
The text was updated successfully, but these errors were encountered: