|
@ -47,7 +47,7 @@ function signup({ |
|
|
async function userPersonalData() { |
|
|
async function userPersonalData() { |
|
|
const authToken = await authStorage.getToken(); |
|
|
const authToken = await authStorage.getToken(); |
|
|
const localClient = create({ |
|
|
const localClient = create({ |
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/auth/users", |
|
|
|
|
|
|
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/authtest/users", |
|
|
}); |
|
|
}); |
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ async function userActivation(code) { |
|
|
// console.log("USER NAME: " + username);
|
|
|
// console.log("USER NAME: " + username);
|
|
|
|
|
|
|
|
|
const localClient = create({ |
|
|
const localClient = create({ |
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/auth/users", |
|
|
|
|
|
|
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/authtest/users", |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
@ -97,7 +97,7 @@ function loginByUsernamAnswers(username, secQuestionId, secQuestionAnswer) { |
|
|
|
|
|
|
|
|
function updatePassword(authToken, username, password) { |
|
|
function updatePassword(authToken, username, password) { |
|
|
const localClient = create({ |
|
|
const localClient = create({ |
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/auth/forgotpasswords", |
|
|
|
|
|
|
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/authtest/forgotpasswords", |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
@ -110,7 +110,7 @@ function updatePassword(authToken, username, password) { |
|
|
async function UpdateUserInfo(authToken,defaultValue,formValues) { |
|
|
async function UpdateUserInfo(authToken,defaultValue,formValues) { |
|
|
|
|
|
|
|
|
const localClient = create({ |
|
|
const localClient = create({ |
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/auth/users", |
|
|
|
|
|
|
|
|
baseURL: "https://wpd.brazilsouth.cloudapp.azure.com/authtest/users", |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
|
localClient.setHeader("Authorization", `Bearer ${authToken}`); |
|
|