diff --git a/Quizzer/Quizzer/Pages/Index.cshtml.cs b/Quizzer/Quizzer/Pages/Index.cshtml.cs
index 4914235..119a3ad 100644
--- a/Quizzer/Quizzer/Pages/Index.cshtml.cs
+++ b/Quizzer/Quizzer/Pages/Index.cshtml.cs
@@ -418,7 +418,11 @@ namespace Quizzer.Pages
{
case "startTest":
// NEW: Coverage: register who takes the test
- dbManager.SetCoverage(OpenIDUtils.GetJwtClaim(HttpContext, "email"), OpenIDUtils.GetJwtClaim(HttpContext, "name"), ucnData.theClass.FirstOrDefault());
+ Quizz theQuizz = dbManager.GetQuizz(value);
+ if (! theQuizz.Anonymous)
+ { // Only register coverage if the test is not anonymous
+ dbManager.SetCoverage(OpenIDUtils.GetJwtClaim(HttpContext, "email"), OpenIDUtils.GetJwtClaim(HttpContext, "name"), ucnData.theClass.FirstOrDefault());
+ }
if (isDebug) Console.WriteLine(OpenIDUtils.GetJwtClaim(HttpContext, "name") + ": REMOTE ADDR: " + HttpContext.Request.Headers["X-Forwarded-For"]);
Console.WriteLine(OpenIDUtils.GetJwtClaim(HttpContext, "name") + ": REMOTE ADDR: " + HttpContext.Request.Headers["X-Forwarded-For"]);
PageQuizzID = value;