Browse Source

Add test email field to SMTP settings form, for testing

Vova Tkach 5 years ago
parent
commit
08826f2eb2
1 changed files with 8 additions and 1 deletions
  1. 8 1
      modules/module_settings.go

+ 8 - 1
modules/module_settings.go

@@ -422,12 +422,19 @@ func (this *Modules) RegisterModule_Settings() *Module {
 					Hint:    "Example: example@gmail.com",
 					Hint:    "Example: example@gmail.com",
 				},
 				},
 				{
 				{
-					Kind:    builder.DFKText,
+					Kind:    builder.DFKPassword,
 					Caption: "SMTP user password",
 					Caption: "SMTP user password",
 					Name:    "smtp-password",
 					Name:    "smtp-password",
 					Value:   "",
 					Value:   "",
 					Hint:    "Leave this field empty if you don't want change password",
 					Hint:    "Leave this field empty if you don't want change password",
 				},
 				},
+				{
+					Kind:    builder.DFKText,
+					Caption: "Email address for testing",
+					Name:    "smtp-test-email",
+					Value:   "",
+					Hint:    "To this email address will be send test email message if settings are correct",
+				},
 				{
 				{
 					Kind:   builder.DFKSubmit,
 					Kind:   builder.DFKSubmit,
 					Value:  "Save",
 					Value:  "Save",