Skip to content

Commit

Permalink
Fix character encoding issue with google accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
empty2fill committed Mar 21, 2022
1 parent 83e766c commit a38842c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion server/www/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion server/www/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class User(models.Model):
active = models.BooleanField(default=True)

service = models.CharField(max_length=16)
auth_data = models.CharField(max_length=32768)
auth_data = models.TextField()

@property
def user_handle(self):
Expand Down

0 comments on commit a38842c

Please sign in to comment.