Commit ff86a82e authored by michael.simon's avatar michael.simon
Browse files

filter token from active token list, that are not inited yet

parent cd2df8e4
......@@ -108,6 +108,12 @@ public class TwoFaServiceImpl implements TwoFaService {
for (LinotpToken token : tokenList) {
if (token.getIsactive()) {
/*
* filter token, that are not initialized
*/
if (token.getDescription() != null && token.getDescription().contains("INIT")) {
return false;
}
return true;
}
}
......@@ -125,6 +131,12 @@ public class TwoFaServiceImpl implements TwoFaService {
}
for (LinotpToken token : tokenList) {
/*
* filter token, that are not initialized
*/
if (token.getDescription() != null && token.getDescription().contains("INIT")) {
return false;
}
if (token.getIsactive()) {
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment