[bug] Fix bug in FOFEncryptTotp::checkCode.
Fixes #3730