Skip to content

Commit a2426ef

Browse files
committed
Login was returning token on body
1 parent ed6d0d6 commit a2426ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func Login(c *gin.Context) {
9292
c.SetCookie("token", token, 60*60, "/", "", false, true)
9393

9494
// Return success response
95-
c.JSON(http.StatusOK, gin.H{"Token": token})
95+
c.JSON(http.StatusOK, gin.H{})
9696
}
9797

9898
//generateJWTToken generates a JWT token with a specified expiration time and user ID. It first sets the token expiration time based on the amountDays parameter passed into the function.

0 commit comments

Comments
 (0)