result = xwiki.createUser(context);
VelocityContext vcontext = (VelocityContext) context.get("vcontext");</BUG>
vcontext.put("reg", new Integer(result));
}
String redirect = Utils.getRedirect(request, null);
<BUG>if (redirect==null)
</BUG>
return true;
<BUG>else {
</BUG>
sendRedirect(response, redirect);

result = xwiki.createUser(context);
}
VelocityContext vcontext = (VelocityContext) context.get("vcontext");
vcontext.put("reg", new Integer(result));
}
String redirect = Utils.getRedirect(request, null);
if (redirect == null) {
return true;
} else {
sendRedirect(response, redirect);
