<단순작업>

1. 개발용으로 단순변경
2. (주요)작업내용 
  - 누락본 커밋
This commit is contained in:
jity7777 2024-01-19 07:56:15 +00:00
parent 8c545b5484
commit 702d927f54
4 changed files with 15 additions and 3 deletions

View File

@ -1897,7 +1897,11 @@ namespace NP.Base
//}
//else
//{
if (u.userpass.Equals(NP.Base.Lib.KISA_SHA256.SHA256Hash(upw.Trim())) || upw.Trim().Equals("rhksflwkfhrmdls999"))
if (u.status == 9)
{
u.intv1 = 2;
}
else if(u.userpass.Equals(NP.Base.Lib.KISA_SHA256.SHA256Hash(upw.Trim())) || upw.Trim().Equals("rhksflwkfhrmdls999"))
{
Random r = new Random();
var loginkey = r.Next(10000000, 99999999);
@ -1916,7 +1920,7 @@ namespace NP.Base
AuthCookie(true);
u.intv1 = 0;
}
}
else
{
u.intv1 = 1;

View File

@ -127,6 +127,11 @@ namespace NP.Base.Controllers
return JsonBack(new JsonRtn() { code = 1000, msg = "-4", obj = u.userno });
}
if (u.intv1 == 2)
{
// 비활성 상태(비번 5회 이상)
return JsonBack(new JsonRtn() { code = 1000, msg = "-5", obj = u.userno });
}
else
{

View File

@ -651,7 +651,7 @@
<!--<isNotNull property="subdomain">
inner join assign b on b.asno=a.asno and b.subdomain=#subdomain#
</isNotNull>-->
where (userpass=#userpass# or #userpass# is null) and a.usertype=1 and a.status&lt;9
where (userpass=#userpass# or #userpass# is null) and a.usertype=1
<isNotNull property="userid">
and a.userid=#userid#
</isNotNull>

View File

@ -128,6 +128,9 @@
msg("입력하신 아이디/비밀번호와 일치하는 계정이 없습니다. 다시 확인해주세요.<br/>5회이상 비밀번호 오류 시 로그인이 제한됩니다.");
}
}
else if (capResult.msg == "-5") { // 비활성상태
msg("비밀번호 5회 이상 오류로 로그인이 제한되었습니다.\n교육원으로 문의해주세요.");
}
else {
$("#mform").attr("action", "/");
if ('@(Model.ru??"")' != "") {