Skip to content

Commit

Permalink
add assertion for password validators
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakadus committed Oct 28, 2024
1 parent 7cdfe57 commit 20c264d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evap/evaluation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,9 @@ def create_superuser(self, *, email, password=None, first_name=None, last_name=N
return user


assert settings.AUTH_PASSWORD_VALIDATORS == [], "Password validation configured, but evap will not apply it"


class EvapBaseUser(models.Model):
"""This is strongly related to the django.contrib.auth.base_user.AbstractBaseUser model, but does not define natural_key."""

Expand Down

0 comments on commit 20c264d

Please sign in to comment.