페이지 로딩시 자동로그인이 되도록 구현하고 싶습니다... 채택완료
1. 메인페이지에 get으로 mb_id를 지정 ex) URL/?mb_id=test
2. 메인에서 $(document).ready(function(){} 로 페이지가 시작될때 로그인.
인데 어떻게 해야 할지...
$(document).ready(function(){
if(window.location != "http://URL/?mb_id=user_ot0uje">http://URL/?mb_id=user_ot0uje"){
window.location.href = "http://URL/?mb_id=user_ot0uje";
}
if(document.getElementById('mb_id').value != null){
//alert(document.getElementById('mb_id').value);
//alert(document.getElementById('mb_password').value);
if(window.location != "http://URL/?mb_id=user_ot0uje&login_check=true"){
alert("성공");
}else{
document.getElementById('ready_login').submit();
}
}
});
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인