c-innovacion2/resoft/manager_for_cms/process/member/init_pass.jsp

25 lines
676 B
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/manager_for_cms/include/manager_head.jsp"%>
<%
String c_home = r_call(request.getParameter("c_home"));
if(c_home.equals("")){
%>
<script>
alert("Wrong connection.")
location.href="/"
</script>
<% }else{
String c_no = r_call(request.getParameter("c_no"));
String sql_p = "update tbl_member set c_pass = SHA2('111111',512) where c_no = " +c_no;
stmt2.execute(sql_p);
%>
<script>
alert("Password Init OK!./nThe Init Password is 111111")
location.href="list.jsp?c_home=<%=c_home%>"
</script>
<%
}%>
<%@include file="/manager_for_cms/include/manager_bottom.jsp"%>