package scg.web;
import scg.exception.UserExistsException;
import scg.tournament.TournamentManager;
import scg.tournament.Users;
import edu.neu.ccs.demeterf.http.classes.HTTPReq;
public class SignUp extends UserPage {
public final static String PATH = "/signup";
private final static String TITLE = "Sign Up";
protected SignUp(TournamentManager manager, Users users, HTTPReq request) {
super(manager, users, request);
}
@Override
protected String getTitle() {
return TITLE;
}
@Override
protected String getSubmitText() {
return "Submit Request";
}
@Override
protected boolean handleSubmit(StringBuilder builder) {
try {
_users.signup(_username, _password);
builderAppendLn(builder,
"Sign up was successful. The account is now waiting for approval from the administrator.
");
builderAppendLn(builder, "