diff options
author | 2021-07-08 11:32:31 +0200 | |
---|---|---|
committer | 2021-07-08 11:32:31 +0200 | |
commit | 5460271bb51290c2b0acf2f00001096e2b12c3e2 (patch) | |
tree | 6c811b48205502737379a26b9dc15383cf4d4b25 /internal/api/client/auth/signin.go | |
parent | clean up some weirdness in the router (#80) (diff) | |
download | gotosocial-5460271bb51290c2b0acf2f00001096e2b12c3e2.tar.xz |
Auth flow fixes (#82)
* preliminary fixes to broken auth flow
* fix some auth/cookie weirdness
* fmt
Diffstat (limited to 'internal/api/client/auth/signin.go')
-rw-r--r-- | internal/api/client/auth/signin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/auth/signin.go b/internal/api/client/auth/signin.go index 158cc5c4c..7974a8cfa 100644 --- a/internal/api/client/auth/signin.go +++ b/internal/api/client/auth/signin.go @@ -62,7 +62,7 @@ func (m *Module) SignInPOSTHandler(c *gin.Context) { return } - s.Set("userid", userid) + s.Set(sessionUserID, userid) if err := s.Save(); err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return |