commit | 0df767e964185d0ed7b10e205f5fc7c233ad9329 | [log] [tgz] |
---|---|---|
author | Zhiyi Zhang <zhiyi@cs.ucla.edu> | Tue Feb 21 16:05:36 2017 -0800 |
committer | Zhiyi Zhang <zhiyi@cs.ucla.edu> | Wed Feb 22 15:13:56 2017 -0800 |
tree | d11333b22218b9216c18b03cb174adcecd813f82 | |
parent | fb74ae2807da4377231e0d33a8cdc6516ef66e59 [diff] [blame] |
Fix bug in PIN challenge Change-Id: Iec9a419882b957c56bac87554ba1469a93b4f3b9
diff --git a/src/challenge-module/challenge-pin.cpp b/src/challenge-module/challenge-pin.cpp index 2dd4acf..c5825f9 100644 --- a/src/challenge-module/challenge-pin.cpp +++ b/src/challenge-module/challenge-pin.cpp
@@ -79,6 +79,7 @@ // check rest attempt times if (std::get<2>(parsedSecret) > 1) { int restAttemptTimes = std::get<2>(parsedSecret) - 1; + request.setStatus(WRONG_CODE); request.setChallengeSecrets(generateStoredSecrets(std::get<0>(parsedSecret), std::get<1>(parsedSecret), restAttemptTimes));