Reject blank token
This commit is contained in:
parent
a8f7251b34
commit
a8d14bf971
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user