From 9da6bbba31cdc4737b7609ec8fb0220643c1bdfd Mon Sep 17 00:00:00 2001 From: Jakub Motycka Date: Sun, 24 Apr 2016 15:36:30 +0200 Subject: [PATCH] Add config for sendResetPassword, unable to send csrf token --- src/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth.js b/src/auth.js index 864e9c5..78303b0 100644 --- a/src/auth.js +++ b/src/auth.js @@ -286,9 +286,9 @@ devise.provider('Auth', function AuthProvider() { * @returns {Promise} A $http promise that will be resolved or * rejected by the server. */ - sendResetPasswordInstructions: function(creds) { + sendResetPasswordInstructions: function(creds, config) { creds = creds || {}; - return $http(httpConfig('sendResetPasswordInstructions', creds)) + return $http(httpConfig('sendResetPasswordInstructions', creds, config)) .then(service.parse) .then(broadcast('send-reset-password-instructions-successfully')); },