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
|
||||
}
|
||||
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({
|
||||
|
Reference in New Issue
Block a user