← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17768: change ValidationUtils.passwordIsValid to check for range [8, 35], this aligns it with PropertyTyp...

 

------------------------------------------------------------
revno: 17768
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-12-22 10:33:56 +0100
message:
  change ValidationUtils.passwordIsValid to check for range [8,35], this aligns it with PropertyType.PASSWORD and ValidationUtils.js
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ValidationUtils.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ValidationUtils.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ValidationUtils.java	2014-11-25 16:39:09 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ValidationUtils.java	2014-12-22 09:33:56 +0000
@@ -127,7 +127,7 @@
      */
     public static boolean passwordIsValid( String password )
     {
-        if ( password == null || password.trim().length() < 8 || password.trim().length() > 80 )
+        if ( password == null || password.trim().length() < 8 || password.trim().length() > 35 )
         {
             return false;
         }