Skip to content

Commit

Permalink
Set the mfaSecretKey to null before returning it via REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeLuise authored and Coduz committed Jun 18, 2021
1 parent e0895e5 commit a61660b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -267,6 +267,9 @@ public MfaOption findMfa(
throw new KapuaEntityNotFoundException(MfaOption.TYPE, "MfaOption"); // TODO: not sure "MfaOption" it's the best value to return here
}

// Set the mfa secret key to null before returning the mfaOption, due to improve the security
mfaOption.setMfaSecretKey(null);

return mfaOption;
}

Expand Down

0 comments on commit a61660b

Please sign in to comment.