add: ensure that for RA Agent actions there is a valid RA Challenge
[gigi.git] / src / club / wpia / gigi / pages / MainPage.java
index 7fb5228..a486618 100644 (file)
@@ -41,6 +41,12 @@ public class MainPage extends Page {
             vars.put("vp", u.getVerificationPoints());
             vars.put("xp", u.getExperiencePoints());
 
+
+            vars.put("catsinfo", false);
+            if (u.canVerify() && !u.hasValidRAChallenge()) {
+                vars.put("catsinfo", true);
+                vars.put("catsra", true);
+            }
             Certificate[] c = u.getCertificates(false);
             vars.put("c-no", c.length);