aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-08 17:01:15 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-08 17:01:15 +0200
commit1eb3c410bfaedc675da6256276d2481b13a8eef2 (patch)
tree001178c4ba1f673a4e61d901a5f008ecdd0e30a5 /NitrokeyManager.cc
parent394754e9b281f6451a4eac351ce9c84912167a0d (diff)
downloadlibnitrokey-1eb3c410bfaedc675da6256276d2481b13a8eef2.tar.gz
libnitrokey-1eb3c410bfaedc675da6256276d2481b13a8eef2.tar.bz2
Clear TODOs
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index e062b79..a230721 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -98,7 +98,6 @@ namespace nitrokey{
auto gh = get_payload<GetHOTP>();
gh.slot_number = get_internal_slot_number_for_hotp(slot_number);
- //TODO handle user authorization requests (taken from config)
if(user_temporary_password != nullptr && strlen(user_temporary_password)!=0){ //FIXME use string instead of strlen
auth_package<GetHOTP, UserAuthorize>(gh, user_temporary_password, device);
}
@@ -123,7 +122,7 @@ namespace nitrokey{
gt.challenge = challenge;
gt.last_interval = last_interval;
gt.last_totp_time = last_totp_time;
- //TODO handle user authorization requests (taken from config)
+
if(user_temporary_password != nullptr && strlen(user_temporary_password)!=0){ //FIXME use string instead of strlen
auth_package<GetTOTP, UserAuthorize>(gt, user_temporary_password, device);
}