mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-07-09 22:00:03 +02:00
Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456)
Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
50932ce8af
commit
76053ac31a
6 changed files with 168 additions and 100 deletions
|
@ -387,6 +387,11 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
|
|||
ctx.RenderWithErr(ctx.Tr("install.save_config_failed", err), tplInstall, &form)
|
||||
return
|
||||
}
|
||||
|
||||
if err = ctx.Session.Release(); err != nil {
|
||||
ctx.RenderWithErr(ctx.Tr("install.save_config_failed", err), tplInstall, &form)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
log.Info("First-time run install finished!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue