Merge pull request #977 from ostcar/test_password_hasher
Set the test passwort hasher to md5
This commit is contained in:
commit
434f7e6dc4
@ -9,11 +9,13 @@
|
||||
"""
|
||||
|
||||
from django.test.client import Client
|
||||
from django.test.utils import override_settings
|
||||
|
||||
from openslides.participant.models import Group, User
|
||||
from openslides.utils.test import TestCase
|
||||
|
||||
|
||||
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.PBKDF2PasswordHasher',))
|
||||
class TestUmlautUser(TestCase):
|
||||
"""
|
||||
Tests persons with umlauts in there name.
|
||||
|
@ -41,3 +41,8 @@ MEDIA_ROOT = os.path.realpath(os.path.dirname(__file__))
|
||||
# Path to Whoosh search index
|
||||
# Use RAM storage
|
||||
HAYSTACK_CONNECTIONS['default']['STORAGE'] = 'ram'
|
||||
|
||||
# Use a faster passwort hasher
|
||||
PASSWORD_HASHERS = (
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user