1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
...
try
{
string cleSecrete = VfwCrypto.CalculerClefSecrete
(monPasswordATester,ChaineBaseCrypto);
_adapter.SelectCommand = _connection.CreateCommand();
_adapter.SelectCommand.CommandType =
System.Data.CommandType.StoredProcedure;
_adapter.SelectCommand.CommandText = "VerifAuth";
_adapter.SelectCommand.Parameters.Clear();
_adapter.SelectCommand.Parameters.Add("@Login", monLoginATester);
_adapter.SelectCommand.Parameters.Add("@MotDePasse",
VfwCrypto.CalculerClefSecrete(monPasswordATester,ChaineBaseCrypto));
VfwParameter monOutputTypeSource =
_adapter.SelectCommand.Parameters.Add("@TypeSource", SqlDbType.Int, 4);
monOutputTypeSource.Direction = ParameterDirection.Output;
VfwParameter monOutputCodeSource =
_adapter.SelectCommand.Parameters.Add("@Code_source", SqlDbType.UniqueIdentifier, 16);
monOutputCodeSource.Direction = ParameterDirection.Output;
VfwParameter monOutputCodePersonne =
_adapter.SelectCommand.Parameters.Add("@Code_personne", SqlDbType.UniqueIdentifier, 16);
monOutputCodePersonne.Direction = ParameterDirection.Output;
VfwParameter monOutputCodeUtilisateur =
_adapter.SelectCommand.Parameters.Add("@Code_utilisateur", SqlDbType.UniqueIdentifier, 16);
monOutputCodeUtilisateur.Direction = ParameterDirection.Output;
VfwParameter monOutputErreurAuthentification =
_adapter.SelectCommand.Parameters.Add("@ErreurAuthentification", SqlDbType.Int, 4);
monOutputErreurAuthentification.Direction = ParameterDirection.Output;
ExecuterRequete(_adapter.SelectCommand);
... |
Partager