Fixed auth bug
This commit is contained in:
parent
e4c2d9673b
commit
ba1d895039
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue