Reject blank token

This commit is contained in:
rxdn 2020-11-28 19:00:18 +00:00
parent a8f7251b34
commit a8d14bf971

View File

@ -23,7 +23,7 @@ func WhitelabelPost(ctx *gin.Context) {
} }
token, ok := data["token"].(string) token, ok := data["token"].(string)
if !ok { if !ok || token == "" {
ctx.JSON(400, gin.H{ ctx.JSON(400, gin.H{
"success": false, "success": false,
"error": "Missing token", "error": "Missing token",