Commit 47adb428 authored by AuckeBos's avatar AuckeBos
Browse files

small login request fixes

parent 0533a6e7
...@@ -37,7 +37,7 @@ export function login(username, password) { ...@@ -37,7 +37,7 @@ export function login(username, password) {
password, password,
}), }),
}; };
return fetch('http://localhost:8000/api/token-auth', data) return fetch('http://localhost:8000/api/token-auth/', data)
.then( .then(
response => response.json()) response => response.json())
.then( .then(
......
...@@ -30,7 +30,7 @@ class Login extends Component { ...@@ -30,7 +30,7 @@ class Login extends Component {
<View> <View>
<TextInput <TextInput
placeholder="Username" placeholder="Username"
onChangeText={name => this.setState({ name })} onChangeText={username => this.setState({ username })}
/> />
<TextInput <TextInput
placeholder="Password" placeholder="Password"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment