260422_05_ENH: 로그인 시 최초 1회만 휴대전화 인증을 하도록 수정
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user