mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 01:45:51 +01:00
Fix: serializer should handle right password filed names
This commit is contained in:
committed by
Isaac Bythewood
parent
41cac8e784
commit
c1cff2ecb6
@@ -39,7 +39,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
|
||||
)
|
||||
|
||||
def create(self, validated_data):
|
||||
if validated_data['password'] != validated_data['password']:
|
||||
if validated_data['password'] != validated_data['password_repeat']:
|
||||
raise ValidationError(
|
||||
detail={
|
||||
"password_repeat": "Tow password doesn't match",
|
||||
|
||||
Reference in New Issue
Block a user