diff --git a/.gitignore b/.gitignore
index 43058ac4..36adced9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@ app.ini
*.pem
create_services.py
gen_random.py
+sync_salt_modules.py
diff --git a/api/tacticalrmm/core/migrations/0006_auto_20200812_0223.py b/api/tacticalrmm/core/migrations/0006_auto_20200812_0223.py
new file mode 100644
index 00000000..251579e3
--- /dev/null
+++ b/api/tacticalrmm/core/migrations/0006_auto_20200812_0223.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.1 on 2020-08-12 02:23
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('core', '0005_auto_20200712_0454'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='coresettings',
+ name='smtp_host_user',
+ field=models.CharField(blank=True, default='admin@example.com', max_length=255, null=True),
+ ),
+ ]
diff --git a/api/tacticalrmm/core/models.py b/api/tacticalrmm/core/models.py
index 1af4c970..7a724d5b 100644
--- a/api/tacticalrmm/core/models.py
+++ b/api/tacticalrmm/core/models.py
@@ -25,8 +25,8 @@ class CoreSettings(models.Model):
smtp_host = models.CharField(
max_length=255, null=True, blank=True, default="smtp.gmail.com"
)
- smtp_host_user = models.EmailField(
- null=True, blank=True, default="admin@example.com"
+ smtp_host_user = models.CharField(
+ max_length=255, null=True, blank=True, default="admin@example.com"
)
smtp_host_password = models.CharField(
max_length=255, null=True, blank=True, default="changeme"
diff --git a/web/src/components/modals/coresettings/EditCoreSettings.vue b/web/src/components/modals/coresettings/EditCoreSettings.vue
index 1b907e51..b41c011c 100644
--- a/web/src/components/modals/coresettings/EditCoreSettings.vue
+++ b/web/src/components/modals/coresettings/EditCoreSettings.vue
@@ -108,13 +108,7 @@
Username:
-
+
Password:
@@ -200,13 +194,13 @@ export default {
borderRadius: "5px",
backgroundColor: "#027be3",
width: "5px",
- opacity: 0.75
- }
+ opacity: 0.75,
+ },
};
},
methods: {
getCoreSettings() {
- axios.get("/core/getcoresettings/").then(r => {
+ axios.get("/core/getcoresettings/").then((r) => {
this.settings = r.data;
this.allTimezones = Object.freeze(r.data.all_timezones);
this.ready = true;
@@ -218,19 +212,19 @@ export default {
title: "Add email",
prompt: {
model: "",
- isValid: val => this.isValidEmail(val),
- type: "email"
+ isValid: (val) => this.isValidEmail(val),
+ type: "email",
},
cancel: true,
ok: { label: "Add", color: "primary" },
- persistent: false
+ persistent: false,
})
- .onOk(data => {
+ .onOk((data) => {
this.settings.email_alert_recipients.push(data);
});
},
removeEmail(email) {
- const removed = this.settings.email_alert_recipients.filter(k => k !== email);
+ const removed = this.settings.email_alert_recipients.filter((k) => k !== email);
this.settings.email_alert_recipients = removed;
},
isValidEmail(val) {
@@ -241,7 +235,7 @@ export default {
this.$q.loading.show();
axios
.patch("/core/editsettings/", this.settings)
- .then(r => {
+ .then((r) => {
this.$q.loading.hide();
this.notifySuccess("Settings were edited!");
this.$emit("close");
@@ -250,10 +244,10 @@ export default {
this.$q.loading.hide();
this.notifyError("You have some invalid input. Please check all fields");
});
- }
+ },
},
created() {
this.getCoreSettings();
- }
+ },
};
\ No newline at end of file