mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
Fix captcha (#14488)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
669ff8e9b1
commit
41c0776568
9 changed files with 30 additions and 49 deletions
|
@ -161,7 +161,9 @@ func WebRoutes() *web.Route {
|
|||
|
||||
mailer.InitMailRender(templates.Mailer())
|
||||
|
||||
r.Use(captcha.Captchaer(context.GetImageCaptcha()))
|
||||
if setting.Service.EnableCaptcha {
|
||||
r.Use(captcha.Captchaer(context.GetImageCaptcha()))
|
||||
}
|
||||
// Removed: toolbox.Toolboxer middleware will provide debug informations which seems unnecessary
|
||||
r.Use(context.Contexter())
|
||||
// Removed: SetAutoHead allow a get request redirect to head if get method is not exist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue