You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2013/10/25 02:28:12 UTC
git commit: Revert "AMBARI-2620. Weak database passwords cause Hive
fail to start. (Diego Pereira Domingos via srimanth)"
Updated Branches:
refs/heads/trunk e136095b8 -> 9b056b12e
Revert "AMBARI-2620. Weak database passwords cause Hive fail to start. (Diego Pereira Domingos via srimanth)"
This reverts commit aa4b88fed9bfc7ab0fa70c78488e4b40c46aae7c.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/9b056b12
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/9b056b12
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/9b056b12
Branch: refs/heads/trunk
Commit: 9b056b12ed7c5842dead050eb6e041175487941f
Parents: e136095
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Thu Oct 24 17:27:08 2013 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Thu Oct 24 17:27:08 2013 -0700
----------------------------------------------------------------------
ambari-web/app/models/service_config.js | 5 -----
ambari-web/app/utils/validator.js | 12 +-----------
2 files changed, 1 insertion(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/9b056b12/ambari-web/app/models/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/service_config.js b/ambari-web/app/models/service_config.js
index ae7df60..1f58466 100644
--- a/ambari-web/app/models/service_config.js
+++ b/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;
- }
-
}
}
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/9b056b12/ambari-web/app/utils/validator.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/validator.js b/ambari-web/app/utils/validator.js
index 9bc1780..e161f0f 100644
--- a/ambari-web/app/utils/validator.js
+++ b/ambari-web/app/utils/validator.js
@@ -106,16 +106,6 @@ module.exports = {
},
/**
- * validate password
- * @param value
- * #return {Boolean}
- */
- isValidPassword: function(value) {
- var passwordRegex = /^.{5,}$/;
- return passwordRegex.test(value);
- },
-
- /**
* validate key of configurations
* @param value
* @return {Boolean}
@@ -138,4 +128,4 @@ module.exports = {
return false;
}
}
-};
+};
\ No newline at end of file