add config

This commit is contained in:
Matias Alejo Garcia 2014-12-18 20:05:13 -03:00
commit eb2270a2d1
4 changed files with 18 additions and 12 deletions

View file

@ -13,6 +13,8 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
$scope.createStep = 'storage';
$scope.useLocalstorage = false;
$scope.minPasswordStrength = _.isUndefined(config.minPasswordStrength) ?
4 : config.minPasswordStrength;
pinService.makePinInput($scope, 'newpin', function(newValue) {
_firstpin = newValue;

View file

@ -208,7 +208,7 @@ angular.module('copayApp.directives')
var MIN_LENGTH = 8;
var MESSAGES = ['Very Weak', 'Very Weak', 'Weak', 'Medium', 'Strong', 'Very Strong'];
var COLOR = ['#dd514c', '#dd514c', '#faa732', '#faa732', '#5eb95e', '#5eb95e'];
var COLOR = ['#dd514c', '#dd514c', '#faa732', '#faa732', '#16A085', '#16A085'];
function evaluateMeter(password) {
var passwordStrength = 0;