From dcae936144130db8f72d7da249b20b06f0dee6f3 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Thu, 8 Jul 2021 11:27:53 +0200 Subject: [PATCH] fmt --- internal/api/client/auth/authorize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/client/auth/authorize.go b/internal/api/client/auth/authorize.go index ab09718ca..fb16b00fc 100644 --- a/internal/api/client/auth/authorize.go +++ b/internal/api/client/auth/authorize.go @@ -157,7 +157,7 @@ func (m *Module) AuthorizePOSTHandler(c *gin.Context) { c.JSON(http.StatusBadRequest, gin.H{"error": "session missing scope"}) return } - + userID, ok := s.Get(sessionUserID).(string) if !ok { c.JSON(http.StatusBadRequest, gin.H{"error": "session missing userid"})