1
dr
=
DbProvider.Instance().ExecuteReader( cw );
2 if ( dr.Read())
3 {
4 byte [] p1 = edu.guet.elearning.common.util.Cryptography.EncryptPassword( password);
5 byte [] p2 = new byte [ 0 ];
6 p2 = ( byte []) dr[ 0 ];
7 string s1,s2;
8 s1 = System.BitConverter.ToString( p1);
9 s2 = System.BitConverter.ToString( p2);
10
11 // if(s1.Equals(s2)) //................... 1
12 if (p1.Equals(p2)) //....................2
13 {
14 r = 0 ;
15 }
16 else
17 {
18 r = 2 ;
19 }
20 }
21
2 if ( dr.Read())
3 {
4 byte [] p1 = edu.guet.elearning.common.util.Cryptography.EncryptPassword( password);
5 byte [] p2 = new byte [ 0 ];
6 p2 = ( byte []) dr[ 0 ];
7 string s1,s2;
8 s1 = System.BitConverter.ToString( p1);
9 s2 = System.BitConverter.ToString( p2);
10
11 // if(s1.Equals(s2)) //................... 1
12 if (p1.Equals(p2)) //....................2
13 {
14 r = 0 ;
15 }
16 else
17 {
18 r = 2 ;
19 }
20 }
21