Ref and add pbkdf2 as angular module

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-10 16:08:11 -03:00
commit 4bb2375ed0
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
7 changed files with 26 additions and 5 deletions

View file

@ -10,6 +10,7 @@ var modules = [
'ngSanitize',
'ngCsv',
'bwcModule',
'pbkdf2Module',
'copayApp.filters',
'copayApp.services',
'copayApp.controllers',

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('bitpayCardController', function($scope, $rootScope, $timeout, $log, $ionicModal, lodash, bitpayCardService, configService, profileService, walletService, fingerprintService, ongoingProcess, bwcError, bitcore, bwcService, moment, platformInfo) {
angular.module('copayApp.controllers').controller('bitpayCardController', function($scope, $rootScope, $timeout, $log, $ionicModal, lodash, bitpayCardService, configService, profileService, walletService, fingerprintService, ongoingProcess, bwcError, bitcore, pbkdf2Service, moment, platformInfo) {
var self = this;
var client;
@ -295,7 +295,7 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
var data = {
emailAddress : $scope.email,
hashedPassword : bwcService.pbkdf2Sync($scope.password, '..............', 200, 64).toString('hex')
hashedPassword : pbkdf2Service.pbkdf2Sync($scope.password, '..............', 200, 64).toString('hex')
};
// POST /authenticate