Пример #1
0
        public static bool ChangePassword(BOM.User user, String pass)
        {
            String encrypted = Encrypted.GetEncrypted(pass);

            if (DAL.AuthenticationDal.UpdatePassword(user, encrypted))
            {
                String res = BOL.SendMail(user.email, "password for watershed is updated", "updated password is: " + pass);
                return(true);
            }

            return(false);
        }
Пример #2
0
 public static BOM.User Login(BOM.User user)
 {
     user.password = Encrypted.GetEncrypted(user.password);
     //user.ConfirmPassword = Encrypted.GetEncrypted(user.ConfirmPassword);
     return(DAL.AuthenticationDal.LoginDal(user));
 }
Пример #3
0
 public static Boolean Register(BOM.User user)
 {
     user.password        = Encrypted.GetEncrypted(user.password);
     user.ConfirmPassword = Encrypted.GetEncrypted(user.ConfirmPassword);
     return(DAL.AuthenticationDal.RegisterDal(user));
 }