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.
2 parents bd843f9 + c437ca2 commit 4cf8132Copy full SHA for 4cf8132
rest_auth/serializers.py
@@ -256,7 +256,8 @@ def validate_old_password(self, value):
256
)
257
258
if all(invalid_password_conditions):
259
- raise serializers.ValidationError('Invalid password')
+ err_msg = _("Your old password was entered incorrectly. Please enter it again.")
260
+ raise serializers.ValidationError(err_msg)
261
return value
262
263
def validate(self, attrs):
0 commit comments