mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-27 23:51:47 +00:00
smtp账户不一定是邮箱
This commit is contained in:
parent
83b81bf14b
commit
fea77ce92b
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user