added toUppercase for authcode
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2022-02-02 22:23:41 +01:00
parent 8a8a58fe88
commit c5d64fd196

View File

@@ -188,7 +188,7 @@ export const TrackMe = async (store, id64, authcode, sharecode = '') => {
})
return STATUS.IM_A_TEAPOT
}
if (authcode === '' || !AUTHCODE_REGEX.test(authcode)) {
if (authcode === '' || !AUTHCODE_REGEX.test(authcode.toUpperCase())) {
store.commit({
type: 'changeInfoState',
data: {
@@ -201,7 +201,7 @@ export const TrackMe = async (store, id64, authcode, sharecode = '') => {
}
await axios
.post(`${API_URL}/player/${id64}/track`, `authcode=${authcode}&sharecode=${sharecode}`)
.post(`${API_URL}/player/${id64}/track`, `authcode=${authcode.toUpperCase()}&sharecode=${sharecode}`)
.then((res) => {
if (res.status === STATUS.ACCEPTED) {
store.commit({