This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override lazy val password = new MappedPassword(this) { | |
private def validatePassword(passwordText: String): List[FieldError] = { | |
Password.validate(passwordText) match { | |
case Password.Error.Length => List(FieldError(this, Text(S.??("Password too short")))) | |
case Password.Error.Groups => List(FieldError(this, Text(S.??("Password must contain at least 3 different character classes")))) | |
case _ => Nil | |
} | |
} | |
override def validations = validatePassword _ :: super.validations |
I hereby claim:
- I am rwatts07 on github.
- I am rtwatts07 (https://keybase.io/rtwatts07) on keybase.
- I have a public key ASANHNKWZB-YjVh1oh85sAsVVyGfFnZaray1CRsKidms3go
To claim this, I am signing this object: