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); }
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)); }
public static Boolean Register(BOM.User user) { user.password = Encrypted.GetEncrypted(user.password); user.ConfirmPassword = Encrypted.GetEncrypted(user.ConfirmPassword); return(DAL.AuthenticationDal.RegisterDal(user)); }