send-email-challenge: improve default email templates
And use built-in interpolation of ConfigParser
Change-Id: Ifb534d1a49a6ab4fcbd08b49082e8676646797c6
diff --git a/src/challenge/challenge-email.cpp b/src/challenge/challenge-email.cpp
index 26d42f5..d6765a3 100644
--- a/src/challenge/challenge-email.cpp
+++ b/src/challenge/challenge-email.cpp
@@ -72,7 +72,7 @@
if (request.challengeState->challengeStatus == NEED_CODE ||
request.challengeState->challengeStatus == WRONG_CODE) {
NDN_LOG_TRACE("Challenge status: " << request.challengeState->challengeStatus);
- // the incoming interest should bring the pin code
+ // the incoming interest should bring the verification code
std::string givenCode = readString(params.get(tlv::ParameterValue));
auto secret = request.challengeState->secrets;
// check if run out of time