Skip to content

Commit

Permalink
fix make usernames required
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed Jun 12, 2015
1 parent 173d46a commit 63937c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions common/models/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"username": {
"type": "string",
"lowercase": true,
"trim": true
"trim": true,
"id": true
},
"bio": {
"type": "string",
Expand Down Expand Up @@ -226,7 +227,18 @@
}
},
"validations": [],
"relations": {},
"relations": {
"credentials": {
"type": "hasMany",
"model": "userCredential",
"foreignKey": ""
},
"identities": {
"type": "hasMany",
"model": "userIdentity",
"foreignKey": ""
}
},
"acls": [
{
"accessType": "*",
Expand Down
2 changes: 1 addition & 1 deletion server/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"restApiRoot": "/api",
"host": "0.0.0.0",
"port": 3000,
"legacyExplorer" : false,
"legacyExplorer": false,
"remoting": {
"context": {
"enableHttpContext": false
Expand Down

0 comments on commit 63937c3

Please sign in to comment.