@Override
public Roles getRoles() {
//first of all will check hashes
try {
IRequestParameters params = RequestCycle.get().getRequest().getRequestParameters();
StringValue secureHash = params.getParameterValue("secureHash");
StringValue invitationHash = params.getParameterValue("invitationHash");
if (!secureHash.isEmpty() || !invitationHash.isEmpty()) {
PageParameters pp = new PageParameters();
for (String p : params.getParameterNames()) {
for (StringValue sv : params.getParameterValues(p)) {
if (!sv.isEmpty()) {
pp.add(p, sv.toString());
}
}
}