mirror of
https://github.com/jesperh1/csgo-hub-backend.git
synced 2025-05-16 09:18:11 +01:00
hotfix/Whops discord id's can be larger than 18 chars
This commit is contained in:
parent
d5cb6471b1
commit
4b3137eb6c
2
main.go
2
main.go
@ -147,7 +147,7 @@ func CreateToken(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
discord := vars["discord"]
|
discord := vars["discord"]
|
||||||
if len(discord) != 18 {
|
if len(discord) > 21 {
|
||||||
fmt.Fprintf(w, "Bad request")
|
fmt.Fprintf(w, "Bad request")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user