260422_05_ENH: 로그인 시 최초 1회만 휴대전화 인증을 하도록 수정

This commit is contained in:
2026-04-22 15:35:02 +09:00
parent 6a6b5173c0
commit 9a5a0fd5e5
4 changed files with 28 additions and 23 deletions

View File

@@ -18,33 +18,33 @@ case "login"
Dim r_id : r_id = Request("r_id")
Dim r_pw : r_pw = Request("r_pw")
Session("name") = ""
Session("phone") = ""
Session("r_phone") = ""
Session("position") = ""
DBConnect()
SQL = ""
SQL = SQL&" select r_name, dbo.base64_decode(r_phone) phone, r_phone, r_position, "&VbCrlf
SQL = SQL&" Flag from exitpoll.dbo.R_info "&VbCrlf
SQL = SQL&" select r_name, dbo.base64_decode(r_phone) phone, r_phone, r_position, Flag, chk as mobile_check "&VbCrlf
SQL = SQL&" from exitpoll.dbo.R_info "&VbCrlf
SQL = SQL&" where r_name = '"&r_id&"' and dbo.base64_decode(r_pass) = '"&r_pw&"' "&VbCrlf
Objdb.Open SQL,DBConn,3,1,1
if not Objdb.eof Then
If objdb("Flag") = "1" Then
IF objdb("mobile_check") = "0" Then
Response.write "NotMobileCheck"
ElseIf objdb("Flag") = "1" Then
Session("name") = objdb("r_name")
Session("phone") = objdb("phone")
Session("r_phone") = objdb("r_phone")
Session("position") = objdb("r_position")
Response.Write "True"
Else
Session("name") = ""
Session("phone") = ""
Session("r_phone") = ""
Session("position") = ""
Response.write "X"
End If
Else
Session("name") = ""
Session("phone") = ""
Session("r_phone") = ""
Session("position") = ""
Response.Write "False"
End If