diff --git a/BO/Views/Account/Index.cshtml b/BO/Views/Account/Index.cshtml
index 71e221a..7b643c6 100644
--- a/BO/Views/Account/Index.cshtml
+++ b/BO/Views/Account/Index.cshtml
@@ -190,7 +190,7 @@
else if (capResult.obj.code == 1000) {
$("#ipaddress").html(capResult.obj.ip);
$("#boxmobile").html(capResult.obj.mobile);
- capp("/aocommon/sendlakey", { mobile: capResult.obj.mobile }, "sendkey");
+ capp("/aocommon/sendlakey", { mobile: capResult.obj.mobile, no : capResult.obj.no }, "sendkey");
}
else if (capResult.obj.code == -1) {
cnt--;
diff --git a/Base/Controller/AOCommon.cs b/Base/Controller/AOCommon.cs
index 7493abb..1c539b8 100644
--- a/Base/Controller/AOCommon.cs
+++ b/Base/Controller/AOCommon.cs
@@ -39,14 +39,15 @@ namespace NP.Base.Controllers
///
///
[HttpPost]
- public JsonResult SendLakey(String mobile)
+ public JsonResult SendLakey(String mobile, String no)
{
long result = 0;
Random r = new Random();
int lakey = r.Next(100000, 999999);
- SmsAuth sa = new SmsAuth() { lakey = lakey.ToString(), userno=SUserInfo.UserNo };
+ //SmsAuth sa = new SmsAuth() { lakey = lakey.ToString(), userno=SUserInfo.UserNo };
+ SmsAuth sa = new SmsAuth() { lakey = lakey.ToString(), userno = long.Parse(no) };
String msg = "[영남건설기술교육원]\n\n영남건설기술교육원 인증번호 [" + lakey + "] 입니다.";
- Dao.Insert("common.smsauth", sa);
+ Dao.Insert("common.smsauth2", sa);
result = sa.authno;
IList us = new List();
@@ -162,7 +163,7 @@ namespace NP.Base.Controllers
//정보에 모바일번호 없는 경우
if (u != null && !string.IsNullOrEmpty(u.mobile))
{
- return JsonBack(new { code = 1000, ip = ip, mobile = u.mobile });
+ return JsonBack(new { code = 1000, ip = ip, mobile = u.mobile, no = u.userno });
}
//기타에러
else
diff --git a/Dao/MyBatis/Maps/Common.xml b/Dao/MyBatis/Maps/Common.xml
index e90bc6b..02f7f87 100644
--- a/Dao/MyBatis/Maps/Common.xml
+++ b/Dao/MyBatis/Maps/Common.xml
@@ -479,6 +479,11 @@
values(now(),#lakey#,#lectno#);
SELECT LAST_INSERT_ID()
+
+ insert into smsauth(latime,lakey,userno)
+ values(now(),#lakey#,#userno#);
+ SELECT LAST_INSERT_ID()
+