diff options
Diffstat (limited to 'routers/web')
-rw-r--r-- | routers/web/auth/openid.go | 2 | ||||
-rw-r--r-- | routers/web/repo/setting.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/auth/openid.go b/routers/web/auth/openid.go index e0c6069546..f3189887a5 100644 --- a/routers/web/auth/openid.go +++ b/routers/web/auth/openid.go @@ -416,7 +416,7 @@ func RegisterOpenIDPost(ctx *context.Context) { if length < 256 { length = 256 } - password, err := util.RandomString(int64(length)) + password, err := util.CryptoRandomString(int64(length)) if err != nil { ctx.RenderWithErr(err.Error(), tplSignUpOID, form) return diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go index d1c03b59a6..8e249af55d 100644 --- a/routers/web/repo/setting.go +++ b/routers/web/repo/setting.go @@ -337,7 +337,7 @@ func SettingsPost(ctx *context.Context) { return } - remoteSuffix, err := util.RandomString(10) + remoteSuffix, err := util.CryptoRandomString(10) if err != nil { ctx.ServerError("RandomString", err) return |