297598 JDBCLoginService uses hardcoded credential class
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1865 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
ea06889ddd
commit
6f631fab63
|
@ -1,4 +1,5 @@
|
|||
jetty-7.1.3-SNAPSHOT
|
||||
+ 297598 JDBCLoginService uses hardcoded credential class
|
||||
+ 305898 Websocket handles query string in URI
|
||||
+ 313205 Unable to run test-jdbc-sessions tests
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.eclipse.jetty.http.security.Credential;
|
||||
import org.eclipse.jetty.http.security.Password;
|
||||
import org.eclipse.jetty.server.UserIdentity;
|
||||
import org.eclipse.jetty.util.Loader;
|
||||
|
@ -248,7 +249,7 @@ public class JDBCLoginService extends MappedLoginService
|
|||
roles.add(rs.getString(_roleTableRoleField));
|
||||
|
||||
stat.close();
|
||||
return putUser(username, new Password(credentials),roles.toArray(new String[roles.size()]));
|
||||
return putUser(username, Credential.getCredential(credentials),roles.toArray(new String[roles.size()]));
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
|
|
Loading…
Reference in New Issue