010-default-config.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. diff -rupN seahub-3.1.7-server.orig/seahub/settings.py seahub-3.1.7-server/seahub/settings.py
  2. --- seahub-3.1.7-server.orig/seahub/settings.py 2014-10-20 09:32:35.000000000 +0200
  3. +++ seahub-3.1.7-server/seahub/settings.py 2014-12-10 15:47:21.625104606 +0100
  4. @@ -46,7 +46,7 @@ SITE_ID = 1
  5. # If you set this to False, Django will make some optimizations so as not
  6. # to load the internationalization machinery.
  7. -USE_I18N = True
  8. +USE_I18N = False
  9. # If you set this to False, Django will not format dates, numbers and
  10. # calendars according to the current locale.
  11. @@ -209,7 +209,7 @@ SHOW_REPO_DOWNLOAD_BUTTON = False
  12. REPO_PASSWORD_MIN_LENGTH = 8
  13. # mininum length for user's password
  14. -USER_PASSWORD_MIN_LENGTH = 6
  15. +USER_PASSWORD_MIN_LENGTH = 8
  16. # LEVEL based on four types of input:
  17. # num, upper letter, lower letter, other symbols
  18. @@ -218,7 +218,7 @@ USER_PASSWORD_STRENGTH_LEVEL = 3
  19. # default False, only check USER_PASSWORD_MIN_LENGTH
  20. # when True, check password strength level, STRONG(or above) is allowed
  21. -USER_STRONG_PASSWORD_REQUIRED = False
  22. +USER_STRONG_PASSWORD_REQUIRED = True
  23. # Using server side crypto by default, otherwise, let user choose crypto method.
  24. FORCE_SERVER_CRYPTO = True