aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorzeripath2021-11-03 00:33:54 +0000
committerGitHub2021-11-03 08:33:54 +0800
commit9d855bd6a1da51a656bede3a855b2cecc6a22f28 (patch)
treeac34d3039edafd1c8d7814e3ede09f1e22372073 /contrib
parent95da01c5cd946d6e6ba0b0110676d3df36ce85db (diff)
Simplify Gothic to use our session store instead of creating a different store (#17507)
* Simplify Gothic to use our session store instead of creating a different store We have been using xormstore to provide a separate session store for our OAuth2 logins however, this relies on using gorilla context and some doubling of our session storing. We can however, simplify and simply use our own chi-based session store. Thus removing a cookie and some of the weirdness with missing contexts. Signed-off-by: Andrew Thornton <art27@cantab.net> * as per review Signed-off-by: Andrew Thornton <art27@cantab.net> * as per review Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle MaxTokenLength Signed-off-by: Andrew Thornton <art27@cantab.net> * oops Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pr/checkout.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go
index 348ae75d9..89d92c852 100644
--- a/contrib/pr/checkout.go
+++ b/contrib/pr/checkout.go
@@ -36,7 +36,6 @@ import (
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing"
- context2 "github.com/gorilla/context"
"xorm.io/xorm"
)
@@ -138,7 +137,7 @@ func runPR() {
*/
//Start the server
- http.ListenAndServe(":8080", context2.ClearHandler(c))
+ http.ListenAndServe(":8080", c)
log.Printf("[PR] Cleaning up ...\n")
/*