hotfix/Whops discord id's can be larger than 18 chars

This commit is contained in:
Jesper 2022-09-21 22:34:03 +02:00
parent d5cb6471b1
commit 4b3137eb6c

View File

@ -147,7 +147,7 @@ func CreateToken(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
discord := vars["discord"]
if len(discord) != 18 {
if len(discord) > 21 {
fmt.Fprintf(w, "Bad request")
return
}