Commit 8d7c9c43 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed setting password type.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4646 b35dd754-fafc-0310-a699-88a17e54d16e
parent 459e99fc
...@@ -65,7 +65,7 @@ public class JDBCAuthProvider implements AuthProvider { ...@@ -65,7 +65,7 @@ public class JDBCAuthProvider implements AuthProvider {
private String connectionString; private String connectionString;
private String passwordSQL; private String passwordSQL;
private PasswordType passwordType = PasswordType.plain; private PasswordType passwordType;
/** /**
* Constructs a new JDBC authentication provider. * Constructs a new JDBC authentication provider.
...@@ -86,7 +86,8 @@ public class JDBCAuthProvider implements AuthProvider { ...@@ -86,7 +86,8 @@ public class JDBCAuthProvider implements AuthProvider {
passwordSQL = JiveGlobals.getXMLProperty("jdbcAuthProvider.passwordSQL"); passwordSQL = JiveGlobals.getXMLProperty("jdbcAuthProvider.passwordSQL");
passwordType = PasswordType.plain; passwordType = PasswordType.plain;
try { try {
PasswordType.valueOf(JiveGlobals.getXMLProperty("jdbcAuthProvider.passwordType", "plain")); passwordType = PasswordType.valueOf(
JiveGlobals.getXMLProperty("jdbcAuthProvider.passwordType", "plain"));
} }
catch (IllegalArgumentException iae) { catch (IllegalArgumentException iae) {
Log.error(iae); Log.error(iae);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment