Skip to content
Snippets Groups Projects
Commit 5ec5c0ce authored by Sigurd's avatar Sigurd
Browse files

Fixed typeo

Can't believe i've done this
parent 1f88dd39
No related branches found
No related tags found
No related merge requests found
Pipeline #170720 passed with stage
in 26 seconds
......@@ -36,8 +36,8 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
password = data.get("password")
password1 = data.get("password1")
if password != password1():
raise forms.ValidationError("The passwords must match")
if password != password1:
raise serializers.ValidationError("The passwords must match")
try:
password_validation.validate_password(password)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment