23 #include <boost/algorithm/string.hpp> 46 for (
const auto &c : pin)
48 if (!(c >=
'0' && c <=
'9'))
51 "data/attributes/code",
52 BUILD_STR(
"Pin code contains invalid character: " << c));
An exception class for general API error.
This is the header file for a generated source file, GitSHA1.cpp.
const std::string & pin_code() const override
Interface for PinCode credentials.
virtual const std::string & pin_code() const =0
static void validate(const IPinCode &card)
#define BUILD_STR(param)
Internal macro.
static void validate_pin_code(const std::string &)