Skip to content
GitLab
Menu
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
Show whitespace changes
Inline
Side-by-side
app/actions/login.js
View file @
47adb428
...
@@ -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
(
...
...
app/components/Login.js
View file @
47adb428
...
@@ -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
=
{
user
name
=>
this
.
setState
({
user
name
})}
/
>
/
>
<
TextInput
<
TextInput
placeholder
=
"
Password
"
placeholder
=
"
Password
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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