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)
|
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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user