From 292d2455ba2fb7c6f83903b4455879e27371af5c Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Thu, 18 Sep 2014 18:43:55 +0200 Subject: [PATCH] fix(emails): try multiple attemps (delay not avalaible in api because in not yet released version) --- src/controllers/auth.js | 6 ++++++ src/controllers/payments.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/controllers/auth.js b/src/controllers/auth.js index 81abcb32af..b6a4d17f18 100644 --- a/src/controllers/auth.js +++ b/src/controllers/auth.js @@ -128,6 +128,9 @@ api.registerUser = function(req, res, next) { name: username, email: email } + }, + options: { + attemps: 5 } } }); @@ -333,6 +336,9 @@ api.setupPassport = function(router) { name: req.user.displayName || req.user.username, email: req.user.emails[0].value } + }, + options: { + attemps: 5 } } }); diff --git a/src/controllers/payments.js b/src/controllers/payments.js index 85ed42e7b5..70a4484840 100644 --- a/src/controllers/payments.js +++ b/src/controllers/payments.js @@ -81,6 +81,9 @@ function createSubscription(user, data) { name: name, email: email } + }, + options: { + attemps: 5 } } }); @@ -132,6 +135,9 @@ function buyGems(user, data) { name: name, email: email } + }, + options: { + attemps: 5 } } });