mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 16:22:24 -05:00
Auth flow fixes (#82)
* preliminary fixes to broken auth flow * fix some auth/cookie weirdness * fmt
This commit is contained in:
parent
c71e55ecc4
commit
5460271bb5
5 changed files with 79 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue