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()); }
public Mapper_User() { Cryptography = new Password_Cryptography(); Dao = new DAO_User(); Model = new User(); }