<%temp_customer_manage_password_get_changepassword_edit_handle=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_customer_manage_password_changepassword_edit_handle -->
<%
customer_reg_name=Session("FB_EM_1_ACC_customer_password_getback")
if customer_reg_name="" or not site.check.checkt(customer_reg_name) then
	site.Error.info = "密码修改失败！请先回答问题！"
	site.Error.location = "window.back"
	site.Error.err()
End If

If len(Trim(request.Form("password"))) <6 Then
	site.Error.info = "密码修改失败！您填写的新密码应大于6位！"
	site.Error.location = "window.back"
	site.Error.err()
End If

If Trim(request.Form("password")) <> Trim(request.Form("password_verify")) Then
	site.Error.info = "密码修改失败！您填写的新密码和确认新密码不符！"
	site.Error.location = "window.back"
	site.Error.err()
End If

If Not site.temp.customer.info.EditInfo(customer_reg_name, "customer_reg_password='" & site.functions.EncodeMd5(Trim(request.Form("password")),16)&"'") Then
	site.Error.info = "密码修改失败！出现意外错误！" & site.Error.info
	site.Error.location = "window.back"
	site.Error.err()
End If

Session("FB_EM_1_ACC_customer_password_getback")=""

if site.temp.customer.login.logout() then site.Error.info="请您用新密码重新登陆！"
    
site.Error.info = "取回密码成功！"&site.Error.info
site.Error.location = "temps.asp?tr=customer|login|form"
site.Error.suc()
%>