Ref and add pbkdf2 as angular module
This commit is contained in:
parent
4c55b8b541
commit
4bb2375ed0
7 changed files with 26 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ var modules = [
|
|||
'ngSanitize',
|
||||
'ngCsv',
|
||||
'bwcModule',
|
||||
'pbkdf2Module',
|
||||
'copayApp.filters',
|
||||
'copayApp.services',
|
||||
'copayApp.controllers',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue