<%@LANGUAGE="VBSCRIPT"%> <% ' *** Edit Operations: declare variables MM_editAction = CStr(Request("URL")) If (Request.QueryString <> "") Then MM_editAction = MM_editAction & "?" & Request.QueryString End If ' boolean to abort record edit MM_abortEdit = false ' query string to execute MM_editQuery = "" %> <% erro_senha = 0 if Request.Form("senha_old") = Request.Form("senha_antiga") then if Request.Form("senha") <> Request.Form("senha_confirma") then erro_senha = 2 end if else erro_senha = 1 end if ' *** Update Record: set variables If (CStr(Request("MM_update")) <> "" And CStr(Request("MM_recordId")) <> "" and erro_senha = 0) Then MM_editConnection = MM_fitlabor_STRING MM_editTable = "fitlabor_usuario" MM_editColumn = "id_usuario" MM_recordId = "" + Request.Form("MM_recordId") + "" MM_editRedirectUrl = "" MM_fieldsStr = "nome_usuario|value|nome_completo|value|senha|value|email|value" MM_columnsStr = "nome_usuario|',none,''|nome_completo|',none,''|senha|',none,''|email|',none,''" ' create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, "|") MM_columns = Split(MM_columnsStr, "|") ' set the form values For i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(i+1) = CStr(Request.Form(MM_fields(i))) Next ' append the query string to the redirect URL If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString Else MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString End If End If End If %> <% ' *** Update Record: construct a sql update statement and execute it If (CStr(Request("MM_update")) <> "" And CStr(Request("MM_recordId")) <> "" and erro_senha = 0) Then ' create the sql update statement MM_editQuery = "update " & MM_editTable & " set " For i = LBound(MM_fields) To UBound(MM_fields) Step 2 FormVal = MM_fields(i+1) MM_typeArray = Split(MM_columns(i+1),",") Delim = MM_typeArray(0) If (Delim = "none") Then Delim = "" AltVal = MM_typeArray(1) If (AltVal = "none") Then AltVal = "" EmptyVal = MM_typeArray(2) If (EmptyVal = "none") Then EmptyVal = "" If (FormVal = "") Then FormVal = EmptyVal Else If (AltVal <> "") Then FormVal = AltVal ElseIf (Delim = "'") Then ' escape quotes FormVal = "'" & Replace(FormVal,"'","''") & "'" Else FormVal = Delim + FormVal + Delim End If End If If (i <> LBound(MM_fields)) Then MM_editQuery = MM_editQuery & "," End If MM_editQuery = MM_editQuery & MM_columns(i) & " = " & FormVal Next MM_editQuery = MM_editQuery & " where " & MM_editColumn & " = " & MM_recordId If (Not MM_abortEdit) Then ' execute the update Set MM_editCmd = Server.CreateObject("ADODB.Command") MM_editCmd.ActiveConnection = MM_editConnection On Error Resume Next MM_editCmd.CommandText = MM_editQuery MM_editCmd.Execute MM_editCmd.ActiveConnection.Close IF Err.Number <> 0 then Session("msg") = Session("msg") & "" & Err.Description & "" else Session("msg") = Session("msg") & "Alteração ok!" End if If (MM_editRedirectUrl <> "") Then Response.Redirect(MM_editRedirectUrl) End If End If End If %> <%Response.Expires = 0%> <% Dim RsUsuario__MMColParam RsUsuario__MMColParam = "1" if (Session("nome_usuario") <> "") then RsUsuario__MMColParam = Session("nome_usuario") %> <% Dim RsUsuario__MMColParam1 RsUsuario__MMColParam1 = "1" if (Session("senha") <> "") then RsUsuario__MMColParam1 = Session("senha") %> <% set RsUsuario = Server.CreateObject("ADODB.Recordset") RsUsuario.ActiveConnection = MM_fitlabor_STRING RsUsuario.Source = "SELECT * FROM fitlabor_usuario WHERE nome_usuario = '" + Replace(RsUsuario__MMColParam, "'", "''") + "' and senha = '" + Replace(RsUsuario__MMColParam1, "'", "''") + "'" RsUsuario.CursorType = 0 RsUsuario.CursorLocation = 2 RsUsuario.LockType = 3 RsUsuario.Open() RsUsuario_numRows = 0 %> <% if erro_senha <> 0 then if erro_senha = 1 then mensagem = "Senha atual inválida.\nTente novamente." if erro_senha = 2 then mensagem = "Confirmação da Senha inválida.\nTente novamente." response.write("") end if if RsUsuario.EOF then url = "./login.asp" response.write("") end if %> Fit Labor - Área do Cliente

Digite seu e-mail

Esqueci minha senha, O que faço?

O procedimento é simples. Basta seguir o roteiro abaixo:

1.Preencha o campo "e-mail" e clique no botão: "enviar>>>".

2.Automaticamente é enviado para o endereço eletrônico que você cadastrou, um e-mail contendo a senha.

3.Se persistir o problema favor nos contactar.


© Copyright, 2005, FIT LABOR. by PYPE
<% RsUsuario.Close() %>