Ejemplo n.º 1
0
        public User FindByEmailPassword(string email, string password)
        {
            Password_Cryptography cryp = new Password_Cryptography();
            string hash = cryp.Encode(password);

            return(Session.QueryOver <User>()
                   .Where(x => x.Email == email)
                   .Where(x => x.Password == hash)
                   .SingleOrDefault());
        }
Ejemplo n.º 2
0
 public Mapper_User()
 {
     Cryptography = new Password_Cryptography();
     Dao          = new DAO_User();
     Model        = new User();
 }