Changeset 73 for branches/TaskRewrite/src/grails-app/domain
- Timestamp:
- Mar 14, 2009, 10:04:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TaskRewrite/src/grails-app/domain/Person.groovy
r66 r73 27 27 28 28 /** plain password to create a MD5 password */ 29 String pass = '[secret]'29 String pass 30 30 31 31 static constraints = { 32 loginName(blank: false, unique: true )//minSize:732 loginName(blank: false, unique: true, minSize:4)//minSize:7 33 33 firstName(blank: false) 34 34 lastName(blank: false) 35 password(blank: false) //minSize:736 35 employeeID(blank: true, nullable:true) 36 description() 37 email() 38 emailShow() 39 isActive() 40 //Enforcing minSize on password does not work since "" gets encoded to a string. 41 password(blank: false) 42 //So we need to use pass for validation then encode it for above. 43 pass(blank: false, minSize:4) 44 37 45 } 38 46
Note: See TracChangeset
for help on using the changeset viewer.