Ejemplo n.º 1
0
 public bool VerifyPassword(MarketManPassFM passwordFM)
 {
     if (passwordFM.CurrentPassword == GetMarketManPassFM(passwordFM.ID).CurrentPassword)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
        public MarketManPassFM GetMarketManPassFM(int ID)
        {
            MarketManDAO    dao        = new MarketManDAO();
            MarketMan       user       = dao.GetMarketManByID(ID);
            MarketManPassFM passwordFM = new MarketManPassFM(user);

            return(passwordFM);
        }
Ejemplo n.º 3
0
        public void UpdatePassword(MarketManPassFM passwordFM)
        {
            MarketManDAO dao  = new MarketManDAO();
            MarketMan    user = dao.GetMarketManByID(passwordFM.ID);

            user.Password = passwordFM.NewPassword;
            dao.UpdateMarketMan(user);
        }