Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Use password field type for SMTP password #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions aldryn_config.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# -*- coding: utf-8 -*-
from aldryn_client.forms import BaseForm, CharField, NumberField, CheckboxField
from aldryn_client.forms import (
BaseForm, CharField, CheckboxField, NumberField, PasswordField,
)


class Form(BaseForm):

email_host = CharField('SMTP Host', initial='localhost')
email_port = NumberField('SMTP Port', initial=25)
email_host_user = CharField('SMTP User', initial='')
email_host_password = CharField('SMTP Password', initial='')
email_host_password = PasswordField('SMTP Password', initial='')
email_use_tls = CheckboxField('Use TLS', required=False, initial=False)

default_from_email = CharField('Default from email', initial='', required=False)
Expand Down