aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cert.go1
-rw-r--r--cmd/web.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index 631c4c68..0a09b003 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -114,6 +114,7 @@ func runCert(ctx *cli.Context) {
SerialNumber: serialNumber,
Subject: pkix.Name{
Organization: []string{"Acme Co"},
+ CommonName: "Gogs",
},
NotBefore: notBefore,
NotAfter: notAfter,
diff --git a/cmd/web.go b/cmd/web.go
index ca4a6291..db1bf98a 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -242,7 +242,7 @@ func runWeb(ctx *cli.Context) {
ctx.HandleAPI(404, "Page not found")
})
})
- })
+ }, ignSignIn)
// User.
m.Group("/user", func() {