Skip to content

Commit 5d5e425

Browse files
committed
adding more docs
1 parent 69e0f39 commit 5d5e425

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

models/basicauth/BasicAuthUser.cfc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,26 @@ component accessors="true" {
1717

1818
/**
1919
* Validation constraints
20+
* https://coldbox-validation.ortusbooks.com/overview/valid-constraints
2021
*/
2122
this.constraints = {
2223
firstName : { required : true, size : "1..255" },
2324
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"
2535
};
2636

2737
/**
2838
* Mementifier serialization
39+
* https://forgebox.io/view/mementifier
2940
*/
3041
this.memento = {
3142
// Default properties to serialize

0 commit comments

Comments
 (0)