From b71d9e2ded2396e50f2d62e088ce315787cd2f6e Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Sat, 15 May 2021 10:03:09 +0200 Subject: [PATCH] update --- adminer/index.js | 4 ++-- readme.md | 8 +++++--- server/main.py | 3 --- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/adminer/index.js b/adminer/index.js index fa70d9f..dfee877 100644 --- a/adminer/index.js +++ b/adminer/index.js @@ -4,9 +4,9 @@ var app = new Vue({ type: 'admin_pass', /* admin_pass or token */ password: 'test', loggedin: false, - //mailerHost: 'https://mailer.jean-cloud.net', + mailerHost: 'https://mailer.jean-cloud.net', //mailerHost: 'http://localhost:8080', - mailerHost: '/api', + //mailerHost: '/api', forms: [], users: [], newUser: '', diff --git a/readme.md b/readme.md index 63dbf7c..88e4e50 100644 --- a/readme.md +++ b/readme.md @@ -59,9 +59,9 @@ The app needs a lot of env vars to run : SMTP_SERVER_ADDRESS=mail.gandi.net SMTP_SERVER_PORT=465 SMTP_SSL=true -SMTP_SERVER_USERNAME=nepasrepondre@jean-cloud.org -SMTP_SERVER_PASSWORD=B9UZtOnIlJcRzx8mh2jCsPTQujwTr9I6XyiA -SMTP_SERVER_SENDER=nepasrepondre@jean-cloud.org +SMTP_SERVER_USERNAME=noreply@example.net +SMTP_SERVER_PASSWORD=bigpass +SMTP_SERVER_SENDER=noreply@example.net MONGODB_HOST=mongodb ADMIN_PASSWORD=test UID=1000 @@ -86,6 +86,8 @@ plain or light theme. - add redirection urls to form config - Include some [capcha](https://alternativeto.net/software/recaptcha/) support - Correctly escape html entities +- Sign mails with the server key +- Use a dedicated SMTP server ### Ameliorations - Use real user/passwords accounts diff --git a/server/main.py b/server/main.py index 3d0583c..af2dbc1 100755 --- a/server/main.py +++ b/server/main.py @@ -147,9 +147,6 @@ def submission (): except Exception as e: raise - - # Redirection - #bottle.redirect(success_redirect_default) origin = request.headers.get('origin') return resp(200, 'Mail envoyé !')