2020-10-12 14:39:23 +09:00
|
|
|
@model NP.Model.VMUser
|
2021-07-14 08:35:08 +09:00
|
|
|
@{
|
2020-11-27 09:31:40 +09:00
|
|
|
var naverClientId = ViewBag.naverClientID;
|
|
|
|
|
var kakaoClientId = ViewBag.kakaoClientID;
|
|
|
|
|
var googleClientId = ViewBag.googleClientID;
|
2020-11-25 16:04:00 +09:00
|
|
|
}
|
2020-11-19 16:34:36 +09:00
|
|
|
<head>
|
|
|
|
|
<script type="text/javascript" src="/js/naveridlogin_js_sdk_2.0.0.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/js/kakao.js"></script>
|
2020-11-27 09:31:40 +09:00
|
|
|
<script src="https://apis.google.com/js/platform.js?onload=googleInit" async defer></script>
|
2020-11-19 16:34:36 +09:00
|
|
|
</head>
|
|
|
|
|
<form id="mform" action="" method="post">
|
|
|
|
|
<div class="lgnWrap">
|
|
|
|
|
<ul class="lgnForm">
|
|
|
|
|
<li><input type="text" name="uid" id="uid" placeholder="아이디" value="@ViewBag.SavedId" /></li>
|
|
|
|
|
<li><input type="password" name="upw" id="upw" placeholder="비밀번호" /></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="lgnChk">
|
|
|
|
|
<input type="checkbox" name="issaveid" id="issaveid" @(ViewBag.SavedId == "" ? "" : "checked")>
|
|
|
|
|
<label for="issaveid">아이디저장</label>
|
|
|
|
|
</div>
|
2021-11-10 08:53:00 +09:00
|
|
|
<p style="margin-bottom: 30px; border: 1px solid red; padding: 5px;">※ 2021년 7월 1일 이전에 회원가입을 하신 분 들은 본인인증을 위하여 회원가입을 다시 진행 해주시길 부탁드립니다.</p>
|
2020-11-19 16:34:36 +09:00
|
|
|
<a href="#" class="lgnBtn" onclick="login();">로그인</a>
|
2020-10-26 10:22:56 +09:00
|
|
|
|
2020-11-19 16:34:36 +09:00
|
|
|
<ul class="lgnFind">
|
|
|
|
|
<li><a href="/Account/FindMe">아이디/비밀번호찾기</a></li>
|
2021-06-30 15:31:47 +09:00
|
|
|
<li><a href="/Account/JoinIdVeri">회원가입</a></li>
|
2020-11-19 16:34:36 +09:00
|
|
|
</ul>
|
2020-10-26 10:22:56 +09:00
|
|
|
|
2020-11-19 16:34:36 +09:00
|
|
|
<br />
|
2021-07-14 08:35:08 +09:00
|
|
|
|
2021-07-13 18:33:26 +09:00
|
|
|
<div id="naverIdLogin" style="display:none"></div>
|
2020-11-19 16:34:36 +09:00
|
|
|
</div>
|
|
|
|
|
</form>
|
2020-10-12 14:39:23 +09:00
|
|
|
|
|
|
|
|
<script>
|
2021-07-14 08:35:08 +09:00
|
|
|
|
2025-07-23 13:21:57 +09:00
|
|
|
$(document).ready(function () {
|
2020-10-12 14:39:23 +09:00
|
|
|
if (opener != null && opener._ismain == 1) {
|
|
|
|
|
opener.location.href = "/Account/Index";
|
|
|
|
|
self.close();
|
|
|
|
|
}
|
|
|
|
|
//else if (ViewBag.gossl == 1 && location.href.substr(0, 5) == 'http:') {
|
|
|
|
|
// location.href = 'https'+location.href.substr(4);
|
|
|
|
|
//}
|
|
|
|
|
else {
|
|
|
|
|
if (!ismobile()) {
|
|
|
|
|
if (val("uid").length > 0) { focus("upw"); } else { focus("uid"); }
|
|
|
|
|
}
|
|
|
|
|
$("#uid").on("keydown", function (e) {
|
|
|
|
|
if (e.keyCode == 13) {
|
|
|
|
|
if (val("uid") != "") {
|
|
|
|
|
focus("upw");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
focus("uid");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("#upw").on("keydown", function (e) {
|
|
|
|
|
if (e.keyCode == 13) {
|
|
|
|
|
if (val("uid") != "" && val("upw") != "") {
|
|
|
|
|
login();
|
|
|
|
|
}
|
|
|
|
|
else if (val("uid") == "") {
|
|
|
|
|
focus("uid");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
focus("upw");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2020-11-19 16:34:36 +09:00
|
|
|
snsInit();
|
2020-10-12 14:39:23 +09:00
|
|
|
});
|
2021-07-14 08:35:08 +09:00
|
|
|
|
2020-10-12 14:39:23 +09:00
|
|
|
function login() {
|
|
|
|
|
if (val("uid") != "" && val("upw") != "") {
|
2025-07-23 13:21:57 +09:00
|
|
|
capp(
|
|
|
|
|
"/focommon/login",
|
|
|
|
|
{
|
|
|
|
|
uid: val("uid"),
|
|
|
|
|
upw: strEnConvert(val("upw")),
|
|
|
|
|
issaveid: $("#issaveid").prop("checked"),
|
|
|
|
|
logincnt: logincnt
|
|
|
|
|
},
|
|
|
|
|
"cblogin");
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
else if (val("uid") == "") {
|
|
|
|
|
focus("uid");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
focus("upw");
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-01-05 08:47:23 +09:00
|
|
|
|
|
|
|
|
/*로그인 결과 처리 ### ty */
|
|
|
|
|
let logincnt = 0;
|
2020-10-12 14:39:23 +09:00
|
|
|
function cblogin() {
|
|
|
|
|
if (capResult.code == 1000) {
|
|
|
|
|
if (capResult.obj == -1) {
|
2020-12-28 15:18:03 +09:00
|
|
|
msg("고객사 사용자는 고객사사이트를 이용해주세요.", null, null, null, "location.href='https://" + capResult.msg + ".cte.or.kr/Account/Index'");
|
2021-12-14 15:37:46 +09:00
|
|
|
}
|
|
|
|
|
else if (capResult.msg == "-2") { // 비밀번호 변경 90일 경과
|
|
|
|
|
$("#mform").attr("action", "/Account/Pwchange");
|
|
|
|
|
if ('@(Model.ru??"")' != "") {
|
2024-08-26 10:56:50 +09:00
|
|
|
@if(ViewBag.smartsearchRslt)
|
|
|
|
|
{
|
|
|
|
|
@:$("#mform").attr("action", "/Account/Pwchange?ru=@(Model.ru)");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@:$("#mform").attr("action", "/Account/Pwchange?ru=@(Model.ru)".replace(/-/gi, '&'));
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-14 15:37:46 +09:00
|
|
|
}
|
|
|
|
|
submit();
|
|
|
|
|
}
|
|
|
|
|
else if (capResult.msg == "-3") { // 휴면해제안내
|
|
|
|
|
$("#mform").attr("action", "/Account/DormantCancel");
|
|
|
|
|
if ('@(Model.ru??"")' != "") {
|
2024-08-26 10:56:50 +09:00
|
|
|
@if(ViewBag.smartsearchRslt)
|
|
|
|
|
{
|
|
|
|
|
@:$("#mform").attr("action", "/Account/DormantCancel?ru=@(Model.ru)");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@:$("#mform").attr("action", "/Account/DormantCancel?ru=@(Model.ru)".replace(/-/gi, '&'));
|
|
|
|
|
}
|
2021-12-14 15:37:46 +09:00
|
|
|
}
|
|
|
|
|
submit();
|
|
|
|
|
}
|
2024-01-05 08:47:23 +09:00
|
|
|
else if (capResult.msg == "-4") { // 비번틀림
|
|
|
|
|
++logincnt;
|
|
|
|
|
if (logincnt > 4) {
|
2024-01-19 17:09:42 +09:00
|
|
|
msg("비밀번호 5회 이상 오류로 로그인이 제한되었습니다.\n교육원으로 문의해주세요.");
|
2024-01-05 08:47:23 +09:00
|
|
|
logincnt = 0;
|
|
|
|
|
}
|
|
|
|
|
else {
|
2024-01-19 14:45:44 +09:00
|
|
|
msg("입력하신 아이디/비밀번호와 일치하는 계정이 없습니다. 다시 확인해주세요.<br/>5회이상 비밀번호 오류 시 로그인이 제한됩니다.");
|
2024-01-05 08:47:23 +09:00
|
|
|
}
|
|
|
|
|
}
|
2024-01-19 16:56:15 +09:00
|
|
|
else if (capResult.msg == "-5") { // 비활성상태
|
|
|
|
|
msg("비밀번호 5회 이상 오류로 로그인이 제한되었습니다.\n교육원으로 문의해주세요.");
|
|
|
|
|
}
|
2025-07-23 13:21:57 +09:00
|
|
|
else if (capResult.msg == "-6") { // 탈퇴신청중
|
|
|
|
|
msg("회원탈퇴가 접수되었습니다.<br/>탈퇴 완료까지 평일 기준 1일 정도 소요될 예정입니다.");
|
|
|
|
|
logincnt = 0;
|
|
|
|
|
}
|
2021-12-14 15:37:46 +09:00
|
|
|
else {
|
2020-10-12 14:39:23 +09:00
|
|
|
$("#mform").attr("action", "/");
|
|
|
|
|
if ('@(Model.ru??"")' != "") {
|
|
|
|
|
$("#mform").attr("action", "@Model.ru".replace(/-/gi, '&'));
|
|
|
|
|
}
|
|
|
|
|
submit();
|
|
|
|
|
}
|
2024-01-19 14:45:44 +09:00
|
|
|
} else { msg("입력하신 아이디/비밀번호와 일치하는 계정이 없습니다. 다시 확인해주세요.<br/>5회이상 비밀번호 오류 시 로그인이 제한됩니다."); }
|
2020-10-12 14:39:23 +09:00
|
|
|
}
|
|
|
|
|
</script>
|