Browse Source

Revert "AMBARI-2620. Weak database passwords cause Hive fail to start. (Diego Pereira Domingos via srimanth)"

This reverts commit aa4b88fed9bfc7ab0fa70c78488e4b40c46aae7c.
Srimanth Gunturi 11 years ago
parent
commit
9b056b12ed
2 changed files with 1 additions and 16 deletions
  1. 0 5
      ambari-web/app/models/service_config.js
  2. 1 11
      ambari-web/app/utils/validator.js

+ 0 - 5
ambari-web/app/models/service_config.js

@@ -582,11 +582,6 @@ App.ServiceConfigProperty = Ember.Object.extend({
             this.set('errorMessage', 'Passwords do not match');
             isError = true;
           }
-          else if (!validator.isValidPassword(value)){
-            this.set('errorMessage', 'Weak password: too short.');
-            isError = true;
-          }
-
       }
     }
 

+ 1 - 11
ambari-web/app/utils/validator.js

@@ -105,16 +105,6 @@ module.exports = {
     return usernameRegex.test(value);
   },
 
-  /**
-   * validate password
-   * @param value
-   * #return {Boolean}
-   */
-  isValidPassword: function(value) {
-    var passwordRegex = /^.{5,}$/;
-    return passwordRegex.test(value);
-  },
-
   /**
    * validate key of configurations
    * @param value
@@ -138,4 +128,4 @@ module.exports = {
         return false;
     }
 }
-};
+};