mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
* 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:
parent
81e684cdcc
commit
735b572f9f
14 changed files with 93 additions and 32 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue