harbor/controllers/signup.go

20 lines
380 B
Go
Raw Normal View History

package controllers
2016-05-06 14:37:44 +02:00
import (
"net/http"
)
// SignUpController handles requests to /sign_up
2016-05-06 14:37:44 +02:00
type SignUpController struct {
BaseController
}
2016-05-23 09:43:15 +02:00
// Get renders sign up page
2016-05-06 14:37:44 +02:00
func (suc *SignUpController) Get() {
if suc.AuthMode != "db_auth" {
suc.CustomAbort(http.StatusUnauthorized, "Status unauthorized.")
}
suc.Data["AddNew"] = false
2016-05-06 14:37:44 +02:00
suc.Forward("Sign Up", "sign-up.htm")
}