Skip to content

Commit

Permalink
Merge pull request #1007 from akto-api-security/hotfix_vuln_api_saas_…
Browse files Browse the repository at this point in the history
…updation

add call in loginuser
  • Loading branch information
ayushaga14 authored Apr 15, 2024
2 parents ad9d8b9 + 311feb7 commit 5292667
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public String execute() throws IOException {
return result;
}

private void triggerVulnColUpdation(User user) {
private static void triggerVulnColUpdation(User user) {
for (String accountIdStr: user.getAccounts().keySet()) {
int accountId = Integer.parseInt(accountIdStr);
Context.accountId.set(accountId);
Expand Down Expand Up @@ -191,6 +191,9 @@ public static String loginUser(User user, HttpServletResponse servletResponse, b
)
);
}
service.submit(() ->{
triggerVulnColUpdation(user);
});
return Action.SUCCESS.toUpperCase();
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit 5292667

Please sign in to comment.