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
concrexit
Commits
1437519d
Commit
1437519d
authored
Feb 12, 2020
by
Simcha van Collem
Browse files
The response is now json
parent
9b0f9b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/members/views.py
View file @
1437519d
...
...
@@ -47,7 +47,7 @@ class ObtainThaliaAuthToken(ObtainAuthToken):
)
if
not
serializer
.
is_valid
():
return
Http
Response
(
"Unauthorized"
,
status
=
401
)
return
Response
(
{
"error"
:
"Unauthorized"
}
,
status
=
401
)
user
=
serializer
.
validated_data
[
"user"
]
token
,
created
=
Token
.
objects
.
get_or_create
(
user
=
user
)
...
...
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