fix spelling mistake in error message and comment out settings.defaults

This commit is contained in:
Henry Oswald
2016-10-03 11:33:14 +01:00
parent 8a2b7d0461
commit ed906f085c
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -190,11 +190,11 @@ module.exports = settings =
# -----------
# These restrict the passwords users can use when registering
# opts are from http://antelle.github.io/passfield
passwordStrengthOptions:
# pattern: "aA$3"
length:
min: 1
max: 10
# passwordStrengthOptions:
# pattern: "aA$3"
# length:
# min: 1
# max: 10
# Email support
# -------------
@@ -125,6 +125,6 @@ define [
scope.complexPasswordErrorMessage = "Password can not contain email address"
if opts.length.max? and modelValue.length == opts.length.max
isValid = false
scope.complexPasswordErrorMessage = "Maxium password length #{opts.length.max} reached"
scope.complexPasswordErrorMessage = "Maximum password length #{opts.length.max} reached"
ngModelCtrl.$setValidity('complexPassword', isValid)
return modelValue