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)
if !ok {
if !ok || token == "" {
ctx.JSON(400, gin.H{
"success": false,
"error": "Missing token",