فهرست منبع

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

This reverts commit aa4b88fed9bfc7ab0fa70c78488e4b40c46aae7c.
Srimanth Gunturi 12 سال پیش
والد
کامیت
9b056b12ed
2فایلهای تغییر یافته به همراه1 افزوده شده و 16 حذف شده
  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;
     }
 }
-};
+};