mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 06:50:15 +02:00
Merge branch 'master' into 'master'
Expand mumble pwhash field to allow for passlib 1.7.3+ See merge request allianceauth/allianceauth!1267
This commit is contained in:
commit
b0dbef1587
@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.2 on 2020-10-11 10:09
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mumble', '0010_mumbleuser_certhash'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='mumbleuser',
|
||||
name='pwhash',
|
||||
field=models.CharField(max_length=90),
|
||||
),
|
||||
]
|
@ -63,7 +63,7 @@ class MumbleManager(models.Manager):
|
||||
|
||||
class MumbleUser(AbstractServiceModel):
|
||||
username = models.CharField(max_length=254, unique=True)
|
||||
pwhash = models.CharField(max_length=80)
|
||||
pwhash = models.CharField(max_length=90)
|
||||
hashfn = models.CharField(max_length=20, default='sha1')
|
||||
groups = models.TextField(blank=True, null=True)
|
||||
certhash = models.CharField(
|
||||
|
@ -211,4 +211,4 @@ class MumbleManagerTestCase(TestCase):
|
||||
pwhash = self.manager.gen_pwhash('test')
|
||||
|
||||
self.assertEqual(pwhash[:15], '$bcrypt-sha256$')
|
||||
self.assertEqual(len(pwhash), 75)
|
||||
self.assertEqual(len(pwhash), 83)
|
||||
|
Loading…
x
Reference in New Issue
Block a user