From 2ebcec5aaeff7e9a9172f083939c5d8dba37eb65 Mon Sep 17 00:00:00 2001 From: Jay Rainey Date: Tue, 10 Dec 2013 13:48:11 +0000 Subject: [PATCH] List available facility in login algorithm. Refs #8581. --- Code/Mantid/Framework/ICat/src/CatalogLogin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp b/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp index 4e3a14c7da72..ccc677d16013 100644 --- a/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp +++ b/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp @@ -8,6 +8,7 @@ This algorithm connects the logged in user to the information catalog. #include "MantidICat/CatalogAlgorithmHelper.h" #include "MantidKernel/MandatoryValidator.h" #include "MantidKernel/MaskedProperty.h" +#include "MantidKernel/ListValidator.h" namespace Mantid { @@ -29,6 +30,8 @@ namespace Mantid declareProperty("Username","", requireValue,"The username to log into the catalog."); declareProperty(new Kernel::MaskedProperty("Password","", requireValue), "The password of the related username to use."); + declareProperty("FacilityName", "", boost::make_shared(Kernel::ConfigService::Instance().getFacilityNames()), + "Select a facility to log in to."); } /// execute the algorithm