flag submission fixed (#812)

This commit is contained in:
René Zubcevic
2020-05-07 11:04:00 +02:00
committed by GitHub
parent 832d6432fc
commit f520c3589c
3 changed files with 76 additions and 15 deletions

View File

@ -38,6 +38,10 @@ public class Scoreboard {
List<WebGoatUser> allUsers = userRepository.findAll();
List<Ranking> rankings = new ArrayList<>();
for (WebGoatUser user : allUsers) {
if (user.getUsername().startsWith("csrf-")) {
//the csrf- assignment specific users do not need to be in the overview
continue;
}
UserTracker userTracker = userTrackerRepository.findByUser(user.getUsername());
rankings.add(new Ranking(user.getUsername(), challengesSolved(userTracker)));
}