mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
smtp账户不一定是邮箱
This commit is contained in:
parent
83b81bf14b
commit
fea77ce92b
@ -6,7 +6,7 @@ from .models import JudgeServer
|
|||||||
class EditSMTPConfigSerializer(serializers.Serializer):
|
class EditSMTPConfigSerializer(serializers.Serializer):
|
||||||
server = serializers.CharField(max_length=128)
|
server = serializers.CharField(max_length=128)
|
||||||
port = serializers.IntegerField(default=25)
|
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)
|
password = serializers.CharField(max_length=128, required=False, allow_null=True, allow_blank=True)
|
||||||
tls = serializers.BooleanField()
|
tls = serializers.BooleanField()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user