https://dev.swisssign.com/projects/swissstick/ticket/1137 forget PIN/password feature incorrectly reports an error; refs #32
This commit is contained in:
		| @@ -1254,7 +1254,6 @@ namespace cardos { | |||||||
|           accordingly. */ |           accordingly. */ | ||||||
|       void unlock(std::string pin, std::string puk, bool force=false) { |       void unlock(std::string pin, std::string puk, bool force=false) { | ||||||
|         CRYPTOLOG("log"); |         CRYPTOLOG("log"); | ||||||
|         if (pkcs15PinRetries()!=-1) return; // all ok |  | ||||||
|         if (pukRetries()==-1) throw pin_locked(); // too late, puk broken |         if (pukRetries()==-1) throw pin_locked(); // too late, puk broken | ||||||
|         logonPuk(puk); |         logonPuk(puk); | ||||||
|         CRYPTOLOG("PUK accepted"); |         CRYPTOLOG("PUK accepted"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user