From 34429a63b9c303c40021dc9273cab53a3cd97e66 Mon Sep 17 00:00:00 2001 From: DAB0mB Date: Thu, 28 Apr 2016 01:29:15 +0300 Subject: [PATCH] Step 5.5: Add sms configuration to api --- api/server/sms.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 api/server/sms.js diff --git a/api/server/sms.js b/api/server/sms.js new file mode 100644 index 0000000..d77a645 --- /dev/null +++ b/api/server/sms.js @@ -0,0 +1,7 @@ +import { Meteor } from 'meteor/meteor'; +import { Accounts } from 'meteor/accounts-base'; + +if (Meteor.settings && Meteor.settings.ACCOUNTS_PHONE) { + Accounts._options.adminPhoneNumbers = Meteor.settings.ACCOUNTS_PHONE.ADMIN_NUMBERS; + Accounts._options.phoneVerificationMasterCode = Meteor.settings.ACCOUNTS_PHONE.MASTER_CODE; +} \ No newline at end of file