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
0233abf1
Commit
0233abf1
authored
Mar 08, 2017
by
Gijs Hendriksen
Browse files
Merge branch 'login' of gitlab.science.ru.nl:thalia/ThaliApp-react into feature-navigation
parents
4585e5fc
47adb428
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/actions/login.js
View file @
0233abf1
...
...
@@ -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 @
0233abf1
...
...
@@ -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