The new user is added on authentication

This commit is contained in:
Eibriel
2015-04-09 19:06:10 -03:00
parent b7b07ea922
commit babdf807fb
2 changed files with 30 additions and 8 deletions

View File

@@ -14,12 +14,17 @@ users_schema = {
'firstname': {
'type': 'string',
'minlength': 1,
'maxlength': 10,
'maxlength': 60,
},
'lastname': {
'type': 'string',
'minlength': 1,
'maxlength': 15,
'maxlength': 60,
},
'email': {
'type': 'string',
'minlength': 1,
'maxlength': 60,
},
'role': {
'type': 'list',
@@ -103,8 +108,8 @@ node_types_schema = {
tokens_schema = {
'username': {
'type': 'string',
'user': {
'type': 'objectid',
'required': True,
},
'token': {