1
0
Fork 0

Enable auth v1 #3

Merged
Asara merged 1 commit from auth into master 2019-10-06 02:46:20 +00:00
2 changed files with 2 additions and 7 deletions
Showing only changes of commit c422473125 - Show all commits

View file

@ -22,8 +22,7 @@ export const userLogin = (username, password) => async (dispatch) => {
const response = await sudoscientist.post('/auth/signin', { const response = await sudoscientist.post('/auth/signin', {
username: username, username: username,
password: password password: password
}, }
{withCredentials: true},
) )
if (response.status === 401) { if (response.status === 401) {
console.log("Please check your credentials") console.log("Please check your credentials")

View file

@ -2,9 +2,5 @@ import axios from 'axios';
export default axios.create({ export default axios.create({
baseURL: 'http://api.sudosci.test:8080/v1/api/', baseURL: 'http://api.sudosci.test:8080/v1/api/',
withCredentials: true, withCredentials: true
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
}
}); });