added toUppercase for authcode
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -188,7 +188,7 @@ export const TrackMe = async (store, id64, authcode, sharecode = '') => {
|
|||||||
})
|
})
|
||||||
return STATUS.IM_A_TEAPOT
|
return STATUS.IM_A_TEAPOT
|
||||||
}
|
}
|
||||||
if (authcode === '' || !AUTHCODE_REGEX.test(authcode)) {
|
if (authcode === '' || !AUTHCODE_REGEX.test(authcode.toUpperCase())) {
|
||||||
store.commit({
|
store.commit({
|
||||||
type: 'changeInfoState',
|
type: 'changeInfoState',
|
||||||
data: {
|
data: {
|
||||||
@@ -201,7 +201,7 @@ export const TrackMe = async (store, id64, authcode, sharecode = '') => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await axios
|
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) => {
|
.then((res) => {
|
||||||
if (res.status === STATUS.ACCEPTED) {
|
if (res.status === STATUS.ACCEPTED) {
|
||||||
store.commit({
|
store.commit({
|
||||||
|
Reference in New Issue
Block a user