Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
47adb428
Commit
47adb428
authored
Mar 08, 2017
by
AuckeBos
Browse files
small login request fixes
parent
0533a6e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/actions/login.js
View file @
47adb428
...
...
@@ -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
(
...
...
app/components/Login.js
View file @
47adb428
...
...
@@ -30,7 +30,7 @@ class Login extends Component {
<
View
>
<
TextInput
placeholder
=
"
Username
"
onChangeText
=
{
name
=>
this
.
setState
({
name
})}
onChangeText
=
{
user
name
=>
this
.
setState
({
user
name
})}
/
>
<
TextInput
placeholder
=
"
Password
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment