X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2Fpages%2Fwot%2FRequestTTPPage.java;h=7d1302349f29911ce1a07957a283dd689da6e48a;hb=65d707afb59546532b1321b69bd2a8ca274c24f7;hp=cdabde5ef9ded79e393ed274b9cc42bfc2f6f438;hpb=d71624703243c182beb0f946ebc582e0366a4686;p=gigi.git diff --git a/src/club/wpia/gigi/pages/wot/RequestTTPPage.java b/src/club/wpia/gigi/pages/wot/RequestTTPPage.java index cdabde5e..7d130234 100644 --- a/src/club/wpia/gigi/pages/wot/RequestTTPPage.java +++ b/src/club/wpia/gigi/pages/wot/RequestTTPPage.java @@ -6,8 +6,8 @@ import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import club.wpia.gigi.dbObjects.Assurance; import club.wpia.gigi.dbObjects.User; +import club.wpia.gigi.dbObjects.Verification; import club.wpia.gigi.output.template.Form; import club.wpia.gigi.pages.LoginPage; import club.wpia.gigi.pages.Page; @@ -40,10 +40,10 @@ public class RequestTTPPage extends Page { if (u.isInGroup(RequestTTPForm.TTP_APPLICANT)) { map.put("inProgress", true); } else { - if (u.getAssurancePoints() < 100) { + if (u.getVerificationPoints() < 100) { int ttpCount = 0; - for (Assurance a : u.getReceivedAssurances()) { - if (a.getMethod().equals(Assurance.AssuranceType.TTP_ASSISTED.getDescription())) { + for (Verification a : u.getReceivedVerifications()) { + if (a.getMethod().equals(Verification.VerificationType.TTP_ASSISTED.getDescription())) { ttpCount++; } }