강의

멘토링

커뮤니티

Inflearn Community Q&A

energytest12064563's profile image
energytest12064563

asked

OAuth 2.0 Concepts and Principles Learned Through Practice, Hacking, and Security

SQL 쿼리 오타 정보공유

Resolved

Written on

·

198

1

friends 사이트 회원가입 할때 에러나서 가입이 안되길래 계속 확인해봤는데

\apache2\htdocs\friends_website\joinAction.php 파일에

아이디 중복 검증 SQL 쿼리에 오타가 있어서 그랬었네요.

$query = "select user_id from users where id='{$id}'";

where절 다음 컬럼명을 user_id로 수정해야 제대로 진행이 됩니다.

$query = "select user_id from users where user_id='{$id}'";

질문 글 올리려다가 마지막으로 확인해보니 보이네용 ㅎㅎ,

다른 분들도 참고하셨으면 좋겠습니다.

 

모의해킹oauth

Answer 1

1

crehacktive님의 프로필 이미지
crehacktive
Instructor

안녕하세요.

정말 감사드립니다.ㅎㅎㅎㅎ

소스코드 수정해서 다시 올려야 겠네요 ㅎㅎ

감사합니다!

energytest12064563's profile image
energytest12064563

asked

Ask a question