OpenSlides/server/openslides/users/management/commands/changepassword.py
Finn Stutzenstein ca56b4f8b4
Use cache in management commands
This requires to have a correct setup when using these commands
2020-10-19 15:29:59 +02:00

17 lines
424 B
Python

import sys
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""
Overwrites the django auth's changepassword. It does not respect our cache and our
own implementation should be used instead.
"""
def run_from_argv(self, *args, **kwargs):
self.stderr.write(
"This command is disabled, use insecurepasswordchange instead."
)
sys.exit(1)