%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
if session("NomUser")= "" then
Response.write("Vous n'êtes pas identifié, veuillez vous identifier ici")
Response.End
else
Dim RSIdentite
Set RSIdentite = Server.CreateObject("ADODB.Recordset")
RSIdentite.ActiveConnection = MM_ArniquaDB1_STRING
RSIdentite.Source = "SELECT IdEmploye, ChgPwd FROM TblEmploye WHERE IdEmploye ="&session("IdUser")
RSIdentite.CursorType = 2
RSIdentite.CursorLocation = 3
RSIdentite.LockType = 2
RSIdentite.Open()
RSIdentite_numRows = 0
If RSIdentite("ChgPwd") = false then
Response.Write("
Vous n'avez pas le droit de changer votre mot de passe ")
Response.Write("Veuillez vous référer à l'administrateur du site")
Response.write(" retour
")
Response.End
End if
end if
%>
<%
Dim RS
Dim Login
Dim Password
Dim NPassword
Dim IdIdentite
'Récupération des variables de session
IdIdentite = Session("IdUser")
Login = Session("NomUser")
Set RS = Server.CreateObject("ADODB.Recordset")
RS.ActiveConnection = MM_ArniquaDB1_STRING
RS.Source = "SELECT login, Password, IdIdentite FROM TblIdentite"' Where login ="&cstr(login)
RS.CursorType = 2
RS.CursorLocation = 3
RS.LockType = 2
RS.Open()
RS_numRows = 0
Rs.Find "Login= '"&login& "'"
%>
Arniqua Section Privée : Changer le mot de passe