mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-07-29 23:34:39 +02:00
Add option for smtp without encryption
This commit is contained in:
parent
100a7e11dc
commit
05e0f1e270
3 changed files with 25 additions and 4 deletions
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 5.1.5 on 2025-03-13 00:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wireguard_tools', '0002_emailsettings_enabled'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='emailsettings',
|
||||
name='smtp_encryption',
|
||||
field=models.CharField(choices=[('ssl', 'SSL'), ('tls', 'TLS'), ('none', 'None (Insecure)'), ('noauth', 'No authentication (Insecure)')], default='tls', max_length=6),
|
||||
),
|
||||
]
|
|
@ -1,6 +1,7 @@
|
|||
from django.db import models
|
||||
import uuid
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class EmailSettings(models.Model):
|
||||
name = models.CharField(default='email_settings', max_length=20, unique=True)
|
||||
|
@ -8,7 +9,7 @@ class EmailSettings(models.Model):
|
|||
smtp_password = models.CharField(max_length=100, blank=True, null=True)
|
||||
smtp_host = models.CharField(max_length=100, blank=True, null=True)
|
||||
smtp_port = models.IntegerField(default=587)
|
||||
smtp_encryption = models.CharField(default='tls', choices=(('ssl', 'SSL'), ('tls', 'TLS')), max_length=3)
|
||||
smtp_encryption = models.CharField(default='tls', choices=(('ssl', 'SSL'), ('tls', 'TLS'), ('none', 'None (Insecure)'), ('noauth', 'No authentication (Insecure)')), max_length=6)
|
||||
smtp_from_address = models.EmailField(blank=True, null=True)
|
||||
enabled = models.BooleanField(default=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue