Commit 13188c97 authored by Thom Wiggers's avatar Thom Wiggers 📐 Committed by Wietse Kuipers
Browse files

Remove extra migration

parent 41e0457e
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-03 14:03
# Generated by Django 1.10 on 2016-11-09 18:56
from __future__ import unicode_literals
from django.conf import settings
......@@ -17,7 +17,7 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name='Tokens',
name='Token',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('token', models.CharField(max_length=64)),
......
# -*- 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',
),
]
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment