Skip to content

Commit 34a4976

Browse files
committed
[TEST] 로그인 버튼 누르면 임시로 로그인되도록 수정
1 parent 22178b2 commit 34a4976

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/membership/component/LoginContainer.jsx

+18-16
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,25 @@ function LoginContainer() {
1313
const navigate = useNavigate();
1414

1515
const navigateToLobby = () => {
16-
axios.post(constants.LOGIN_URL,
17-
{
18-
user: id,
19-
password: password,
20-
})
21-
.then((Response) => {
16+
// axios.post(constants.LOGIN_URL,
17+
// {
18+
// user: id,
19+
// password: password,
20+
// })
21+
// .then((Response) => {
2222

23-
if (Response.data.result == "FAIL") {
24-
console.log("존재하지 않는 ID이거나 비밀번호가 틀렸습니다.");
25-
setId("");
26-
setPassword("");
27-
}
28-
else {
29-
navigate("/lobby");
30-
}
31-
})
32-
.catch((Error) => { console.log("에러", Error) })
23+
// if (Response.data.result == "FAIL") {
24+
// console.log("존재하지 않는 ID이거나 비밀번호가 틀렸습니다.");
25+
// setId("");
26+
// setPassword("");
27+
28+
// }
29+
// else {
30+
// navigate("/lobby");
31+
// }
32+
// })
33+
// .catch((Error) => { console.log("에러", Error) })
34+
navigate("/lobby");
3335

3436
};
3537

0 commit comments

Comments
 (0)