From 3dc967436fcc9ab7ae2772947fca90abbb405579 Mon Sep 17 00:00:00 2001 From: empty2fill Date: Sun, 20 Mar 2022 23:16:12 +0900 Subject: [PATCH] Fix character encoding issue with google accounts - https://github.com/Cisco-Talos/FIRST-plugin-ida/issues/28 (cherry picked from commit c5892bc224bab86bd0b34a533c3a442204b7afef) --- docker-compose.yml | 3 +++ server/www/migrations/0001_initial.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a6a5e36..c8a8189 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,9 @@ services: environment: - MYSQL_ROOT_PASSWORD=password12345 - MYSQL_DATABASE=first_db + command: + - --character-set-server=utf8 + - --collation-server=utf8_general_ci volumes: - ./data/mysql:/var/lib/mysql restart: always diff --git a/server/www/migrations/0001_initial.py b/server/www/migrations/0001_initial.py index 4682f24..9eeca86 100644 --- a/server/www/migrations/0001_initial.py +++ b/server/www/migrations/0001_initial.py @@ -107,7 +107,7 @@ class Migration(migrations.Migration): ('rank', models.BigIntegerField(default=0)), ('active', models.BooleanField(default=True)), ('service', models.CharField(max_length=16)), - ('auth_data', models.CharField(max_length=32768)), + ('auth_data', models.TextField()), ], options={ 'db_table': 'User',