File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,26 @@ component accessors="true" {
17
17
18
18
/**
19
19
* Validation constraints
20
+ * https://coldbox-validation.ortusbooks.com/overview/valid-constraints
20
21
*/
21
22
this .constraints = {
22
23
firstName : { required : true , size : " 1..255" },
23
24
lastName : { required : true , size : " 1..255" },
24
- username : { required : true , size : " 1..255" }
25
+ username : { required : true , size : " 1..255" },
26
+ password : { required : true , size : " 1..255" }
27
+ };
28
+
29
+ /**
30
+ * Validation profiles
31
+ * https://coldbox-validation.ortusbooks.com/overview/validating-constraints/validating-with-profiles
32
+ */
33
+ this .constraintProfiles = {
34
+ " update" : " firstName,lastName,username"
25
35
};
26
36
27
37
/**
28
38
* Mementifier serialization
39
+ * https://forgebox.io/view/mementifier
29
40
*/
30
41
this .memento = {
31
42
// Default properties to serialize
You can’t perform that action at this time.
0 commit comments