|
|
@ -5,8 +5,8 @@ define([
|
|
|
|
var Cred = {};
|
|
|
|
var Cred = {};
|
|
|
|
var Scrypt = window.scrypt;
|
|
|
|
var Scrypt = window.scrypt;
|
|
|
|
|
|
|
|
|
|
|
|
Cred.MINIMUM_PASSWORD_LENGTH = typeof(AppConfig.minimum_password_length) === 'number'?
|
|
|
|
Cred.MINIMUM_PASSWORD_LENGTH = typeof(AppConfig.minimumPasswordLength) === 'number'?
|
|
|
|
AppConfig.minimum_password_length: 8;
|
|
|
|
AppConfig.minimumPasswordLength: 8;
|
|
|
|
|
|
|
|
|
|
|
|
Cred.isLongEnoughPassword = function (passwd) {
|
|
|
|
Cred.isLongEnoughPassword = function (passwd) {
|
|
|
|
return passwd.length >= Cred.MINIMUM_PASSWORD_LENGTH;
|
|
|
|
return passwd.length >= Cred.MINIMUM_PASSWORD_LENGTH;
|
|
|
|