diff options
author | zeripath <art27@cantab.net> | 2020-05-24 00:59:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 20:59:04 -0300 |
commit | f7e376792944f4f5130d62d6e69297fc8790185a (patch) | |
tree | db105ad5b1abf08ae89cb375d87452f405e8ed09 /web_src | |
parent | ac3c4677707b7cec3faa42fbf8b5417be193a0ac (diff) | |
download | gitea-f7e376792944f4f5130d62d6e69297fc8790185a.tar.gz gitea-f7e376792944f4f5130d62d6e69297fc8790185a.zip |
Prevent (caught) panic on login (#11590)
Unfortunately when the virtual session is released it requires that the
real session does not exist. This worked fine when sessions were only
saved at the end of request/response cycle however, now sessions are
saved proactively this does not hold.
The result is a caught panic in the logs during every log-in. This
panic has no significant side-effects but should not occur.
This PR marks the virtual session as released when released and updates
it if the same session is released again.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'web_src')
0 files changed, 0 insertions, 0 deletions