397049 Cannot Provide Custom Credential to JDBCLoginService

This commit is contained in:
Jan Bartel 2013-10-03 16:21:34 +10:00
parent 499d811ba7
commit 8b305e208c
1 changed files with 8 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public class JDBCLoginService extends MappedLoginService
roles.add(rs2.getString(_roleTableRoleField));
}
}
return putUser(username, Credential.getCredential(credentials),roles.toArray(new String[roles.size()]));
return putUser(username, credentials, roles.toArray(new String[roles.size()]));
}
}
}
@ -273,6 +273,13 @@ public class JDBCLoginService extends MappedLoginService
}
return null;
}
/* ------------------------------------------------------------ */
protected UserIdentity putUser (String username, String credentials, String[] roles)
{
return putUser(username, Credential.getCredential(credentials),roles);
}
/**
* Close an existing connection