We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd63b85 commit f463786Copy full SHA for f463786
apps/users/serializers/user.py
@@ -35,12 +35,12 @@
35
from django.utils.translation import get_language
36
37
PASSWORD_REGEX = re.compile(
38
- r"^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z_!@#$%^&*`~.()-+=]+$)"
39
- r"(?![a-z0-9]+$)(?![a-z_!@#$%^&*`~()-+=]+$)(?![0-9_!@#$%^&*`~()-+=]+$)"
40
- r"(?=.*[_!@#$%^&*`~.()-+=])"
+ r"^(?=.*[a-z])(?=.*[_!@#$%^&*`~.()-+=])"
+ r"(?:(?=.*[A-Z])|(?=.*\d))"
41
r"[a-zA-Z0-9_!@#$%^&*`~.()-+=]{6,20}$"
42
)
43
+
44
version, get_key = Cache_Version.SYSTEM.value
45
46
0 commit comments