package controllers

import (
	"net/http"
)

// SignUpController handles requests to /sign_up
type SignUpController struct {
	BaseController
}

// Get renders sign up page
func (suc *SignUpController) Get() {
	if suc.AuthMode != "db_auth" || !suc.SelfRegistration {
		suc.CustomAbort(http.StatusForbidden, "")
	}
	suc.Data["AddNew"] = false
	suc.Forward("page_title_sign_up", "sign-up.htm")
}
