Beispiel #1
0
 def validate_otp(self, value):
     if not Account.verify_otp(self.initial_data.get('phone_no'), value):
         raise serializers.ValidationError(Constants.OTP_VALIDATION_FAILED)
     return value