parent
9b62962758
commit
e3f7497af5
@ -320,9 +320,10 @@ function login() {
|
|||||||
postdata.team = org_team.value;
|
postdata.team = org_team.value;
|
||||||
}
|
}
|
||||||
toast("registration in progress...");
|
toast("registration in progress...");
|
||||||
let url = `${config.baseurl}api/runners/register`;
|
const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2);
|
||||||
|
let url = `${config.baseurl}api/runners/register/?locale=${browserlocale}`;
|
||||||
if (props.token) {
|
if (props.token) {
|
||||||
url = `${config.baseurl}api/runners/register/${props.token}`
|
url = `${config.baseurl}api/runners/register/${props.token}/?locale=${browserlocale}`
|
||||||
}
|
}
|
||||||
axios.post(url, postdata)
|
axios.post(url, postdata)
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user