use camel case, not snek case
This commit is contained in:
parent
520b8967fd
commit
59d25b4c1a
@ -49,7 +49,7 @@ define(function() {
|
|||||||
users.
|
users.
|
||||||
*/
|
*/
|
||||||
config.loginSalt = '';
|
config.loginSalt = '';
|
||||||
config.minimum_password_length = 8;
|
config.minimumPasswordLength = 8;
|
||||||
|
|
||||||
config.badStateTimeout = 30000;
|
config.badStateTimeout = 30000;
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user