smtp账户不一定是邮箱

This commit is contained in:
virusdefender 2018-05-17 01:22:05 +08:00
parent 83b81bf14b
commit fea77ce92b

View File

@ -6,7 +6,7 @@ from .models import JudgeServer
class EditSMTPConfigSerializer(serializers.Serializer):
server = serializers.CharField(max_length=128)
port = serializers.IntegerField(default=25)
email = serializers.EmailField(max_length=128)
email = serializers.CharField(max_length=256)
password = serializers.CharField(max_length=128, required=False, allow_null=True, allow_blank=True)
tls = serializers.BooleanField()