From eee168536120128a06bc5b57aab0bbc5cc60800e Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 28 Sep 2020 21:45:54 +0800 Subject: [PATCH] no message --- fir_client/src/components/FirFooter.vue | 132 ++++++++++++++++++++++++ fir_ser/fir_ser/settings.py | 53 +++++++++- 2 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 fir_client/src/components/FirFooter.vue diff --git a/fir_client/src/components/FirFooter.vue b/fir_client/src/components/FirFooter.vue new file mode 100644 index 0000000..46c9fcf --- /dev/null +++ b/fir_client/src/components/FirFooter.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index d546b90..7ef3ea7 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -154,7 +154,7 @@ CACHES = { "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", "CONNECTION_POOL_KWARGS": {"max_connections": 100}, - "PASSWORD": "nineven", + "PASSWORD": "", "DECODE_RESPONSES": True } }, @@ -225,6 +225,57 @@ THIRD_PART_CONFIG = { }, 'active': False } + ], + 'sender': [ + { + 'name': 'email', + 'type': 0, + 'auth': { + 'email_host': 'smtp.hehegames.cn', + 'email_port': '25', + 'username': 'git@hehegames.cn', + 'password': 'QE.54272cd.ecQ.wSj', + 'form': 'FlyApp Validation ', + 'subject': '%(code)s验证', + 'template_code': { + 'login': '验证码%(code)s,您正在登录,若非本人操作,请勿泄露。', + 'change': '验证码%(code)s,您正在尝试变更重要信息,请妥善保管账户信息。', + 'register': '验证码%(code)s,您正在注册成为新用户,感谢您的支持!', + } + }, + 'active': True + }, + { + 'name': 'aliyun', + 'type': 1, + 'auth': { + 'access_key': 'LTAI4FmYZgtCRZcs4j32GUAR', + 'secret_key': '7i7J34blLcxTYbwjR9ToK7lEglvJw0', + 'region_id': 'cn-hangzhou', + 'sing_name': '合合相亲', + 'template_code': { + 'login': 'SMS_177185094', + 'change': 'SMS_177185090', + 'register': 'SMS_177185092', + } + }, + 'active': False + }, + { + 'name': 'jiguang', + 'type': 2, + 'auth': { + 'app_key': 'd039807b5f13386e0b303b91', + 'master_secret': '11dbb341abc02888ba277d3a', + 'sign_id': '10823', + 'template_code': { + 'login': '1', + 'change': '1', + 'register': '1', + } + }, + 'active': True + }, ] }