Skip to content

Commit

Permalink
List available facility in login algorithm. Refs #8581.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Dec 10, 2013
1 parent 5fb852c commit 2ebcec5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/ICat/src/CatalogLogin.cpp
Expand Up @@ -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
{
Expand All @@ -29,6 +30,8 @@ namespace Mantid
declareProperty("Username","", requireValue,"The username to log into the catalog.");
declareProperty(new Kernel::MaskedProperty<std::string>("Password","", requireValue),
"The password of the related username to use.");
declareProperty("FacilityName", "", boost::make_shared<Kernel::StringListValidator>(Kernel::ConfigService::Instance().getFacilityNames()),
"Select a facility to log in to.");
}

/// execute the algorithm
Expand Down

0 comments on commit 2ebcec5

Please sign in to comment.