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) {
password,
}),
};
return fetch('http://localhost:8000/api/token-auth', data)
return fetch('http://localhost:8000/api/token-auth/', data)
.then(
response => response.json())
.then(
......
......@@ -30,7 +30,7 @@ class Login extends Component {
<View>
<TextInput
placeholder="Username"
onChangeText={name => this.setState({ name })}
onChangeText={username => this.setState({ username })}
/>
<TextInput
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