mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-18 05:53:00 -06:00
fmt
This commit is contained in:
parent
ec9974844c
commit
dcae936144
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ func (m *Module) AuthorizePOSTHandler(c *gin.Context) {
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"error": "session missing scope"})
|
c.JSON(http.StatusBadRequest, gin.H{"error": "session missing scope"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
userID, ok := s.Get(sessionUserID).(string)
|
userID, ok := s.Get(sessionUserID).(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"error": "session missing userid"})
|
c.JSON(http.StatusBadRequest, gin.H{"error": "session missing userid"})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue