form.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. $config->my->form = new stdclass();
  3. $config->my->form->changePassword = array();
  4. $config->my->form->changePassword['originalPassword'] = array('required' => true, 'type' => 'string', 'default' => '');
  5. $config->my->form->changePassword['password1'] = array('required' => true, 'type' => 'string', 'default' => '');
  6. $config->my->form->changePassword['password2'] = array('required' => true, 'type' => 'string', 'default' => '');
  7. $config->my->form->changePassword['passwordLength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  8. $config->my->form->changePassword['passwordStrength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  9. $config->my->form->editProfile = array();
  10. $config->my->form->editProfile['account'] = array('required' => true, 'type' => 'string', 'default' => '', 'skipRequired' => true);
  11. $config->my->form->editProfile['password1'] = array('required' => false, 'type' => 'string', 'default' => '');
  12. $config->my->form->editProfile['password2'] = array('required' => false, 'type' => 'string', 'default' => '');
  13. $config->my->form->editProfile['visions'] = array('required' => true, 'type' => 'array', 'default' => [], 'filter' => 'join');
  14. $config->my->form->editProfile['realname'] = array('required' => true, 'type' => 'string', 'default' => '');
  15. $config->my->form->editProfile['join'] = array('required' => false, 'type' => 'date', 'default' => null);
  16. $config->my->form->editProfile['email'] = array('required' => false, 'type' => 'string', 'default' => '');
  17. $config->my->form->editProfile['gender'] = array('required' => false, 'type' => 'string', 'default' => '');
  18. $config->my->form->editProfile['commiter'] = array('required' => false, 'type' => 'string', 'default' => '');
  19. $config->my->form->editProfile['mobile'] = array('required' => false, 'type' => 'string', 'default' => '');
  20. $config->my->form->editProfile['phone'] = array('required' => false, 'type' => 'string', 'default' => '');
  21. $config->my->form->editProfile['qq'] = array('required' => false, 'type' => 'string', 'default' => '');
  22. $config->my->form->editProfile['dingding'] = array('required' => false, 'type' => 'string', 'default' => '');
  23. $config->my->form->editProfile['weixin'] = array('required' => false, 'type' => 'string', 'default' => '');
  24. $config->my->form->editProfile['skype'] = array('required' => false, 'type' => 'string', 'default' => '');
  25. $config->my->form->editProfile['whatsapp'] = array('required' => false, 'type' => 'string', 'default' => '');
  26. $config->my->form->editProfile['slack'] = array('required' => false, 'type' => 'string', 'default' => '');
  27. $config->my->form->editProfile['address'] = array('required' => false, 'type' => 'string', 'default' => '');
  28. $config->my->form->editProfile['zipcode'] = array('required' => false, 'type' => 'string', 'default' => '');
  29. $config->my->form->editProfile['verifyPassword'] = array('required' => true, 'type' => 'string', 'default' => '');
  30. $config->my->form->editProfile['passwordLength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  31. $config->my->form->editProfile['passwordStrength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  32. $config->my->form->manageContacts = array();
  33. $config->my->form->manageContacts['listName'] = array('required' => true, 'type' => 'string', 'default' => '');
  34. $config->my->form->manageContacts['userList'] = array('required' => true, 'type' => 'array', 'default' => array(), 'filter' => 'join');
  35. $config->my->form->manageContacts['public'] = array('required' => false, 'type' => 'int', 'default' => 0);