Fixed auth bug

This commit is contained in:
Artyom Belousov 2019-05-11 17:10:24 +03:00
parent e4c2d9673b
commit ba1d895039

View file

@ -11,6 +11,7 @@ func HandleMessage(c *gin.Context) {
c.BindJSON(&req) c.BindJSON(&req)
if (req.Type == "confirmation") && (req.GroupId == GROUPID) { if (req.Type == "confirmation") && (req.GroupId == GROUPID) {
c.String(http.StatusOK, CONFIRMATION_STRING) c.String(http.StatusOK, CONFIRMATION_STRING)
return
} }
if req.Secret != SECRET_KEY { if req.Secret != SECRET_KEY {
return return