diff options
Diffstat (limited to 'internal/route/install.go')
-rw-r--r-- | internal/route/install.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/install.go b/internal/route/install.go index 5bbf943a..8c9d2eda 100644 --- a/internal/route/install.go +++ b/internal/route/install.go @@ -27,8 +27,8 @@ import ( "gogs.io/gogs/internal/markup" "gogs.io/gogs/internal/osutil" "gogs.io/gogs/internal/ssh" + "gogs.io/gogs/internal/strutil" "gogs.io/gogs/internal/template/highlight" - "gogs.io/gogs/internal/tool" ) const ( @@ -365,7 +365,7 @@ func InstallPost(c *context.Context, f form.Install) { cfg.Section("log").Key("ROOT_PATH").SetValue(f.LogRootPath) cfg.Section("security").Key("INSTALL_LOCK").SetValue("true") - secretKey, err := tool.RandomString(15) + secretKey, err := strutil.RandomChars(15) if err != nil { c.RenderWithErr(c.Tr("install.secret_key_failed", err), INSTALL, &f) return |