* MCI keys no longer consider view IDs as this implied order

* Converted all MCI keys in menu.json/etc., e.g. BN1ET2 -> BN1ET2
* Fix regression with prompt loading
* 'age' property -> 'birthdate'
* MaskEditView.getData() returns data with literals in place
* Other minor changes
This commit is contained in:
Bryan Ashby 2015-07-21 23:52:20 -06:00
parent 81e684cdcc
commit 735b572f9f
14 changed files with 93 additions and 32 deletions

View file

@ -31,6 +31,11 @@ function validateApplicationData(formData, cb) {
return;
}
if(isNaN(Date.parse(formData.value.birthdate))) {
cb('Invalid birthdate!');
return;
}
if(formData.value.password.length < Config.users.passwordMin) {
cb('Password too short!', [ 9, 10 ]);
return;
@ -81,7 +86,7 @@ function submitApplication(callingMenu, formData, extraArgs) {
newUser.properties = {
real_name : formData.value.realName,
birthday : formData.value.birthday,
birthdate : new Date(Date.parse(formData.value.birthdate)).toISOString(),
sex : formData.value.sex,
location : formData.value.location,
affiliation : formData.value.affils,