mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 14:13:43 +01:00
20 lines
391 B
Go
20 lines
391 B
Go
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.CustomAbort(http.StatusUnauthorized, "Status unauthorized.")
|
|
}
|
|
suc.Data["AddNew"] = false
|
|
suc.Forward("page_title_sign_up", "sign-up.htm")
|
|
}
|