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
concrexit
Commits
13188c97
Commit
13188c97
authored
Nov 09, 2016
by
Thom Wiggers
📐
Committed by
Wietse Kuipers
Nov 10, 2016
Browse files
Remove extra migration
parent
41e0457e
Changes
3
Hide whitespace changes
Inline
Side-by-side
website/thaliapp/migrations/0001_initial.py
View file @
13188c97
# -*- coding: utf-8 -*-
# Generated by Django 1.10
.2
on 2016-11-0
3
1
4:03
# Generated by Django 1.10 on 2016-11-0
9
1
8:56
from
__future__
import
unicode_literals
from
django.conf
import
settings
...
...
@@ -17,7 +17,7 @@ class Migration(migrations.Migration):
operations
=
[
migrations
.
CreateModel
(
name
=
'Token
s
'
,
name
=
'Token'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'token'
,
models
.
CharField
(
max_length
=
64
)),
...
...
website/thaliapp/migrations/0002_auto_20161103_1518.py
deleted
100644 → 0
View file @
41e0457e
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-03 14:18
from
__future__
import
unicode_literals
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'thaliapp'
,
'0001_initial'
),
]
operations
=
[
migrations
.
RenameModel
(
old_name
=
'Tokens'
,
new_name
=
'Token'
,
),
]
website/thaliapp/views.py
View file @
13188c97
...
...
@@ -59,7 +59,7 @@ def app(request):
username
=
request
.
POST
.
get
(
'username'
)
token
=
request
.
POST
.
get
(
'token'
)
if
(
sha256
(
request
.
POST
.
get
(
'apikey'
,
''
).
encode
(
'ascii'
)).
hexdigest
()
!=
settings
.
WOLKTM
_API_KEY
):
settings
.
THALIAPP
_API_KEY
):
return
HttpResponseForbidden
()
if
username
is
None
or
token
is
None
:
return
HttpResponseBadRequest
()
...
...
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