Implement getQueryParameter() function on Credentials (to provide an option for those needing parameters within context updates). Do not read parameters within AuthenticatingHttpServlet.
This commit is contained in:
1 parent
11bc2d7c68
commit
7d3c78bb58
2 files changed
+108
-40
No files matched your search
-6
@@ -256,16 +256,10 @@ public abstract class AuthenticatingHttpServlet extends HttpServlet {
|
||||
return;
|
||||
}
|
||||
|
||||
// Retrieve username and password from parms
|
||||
String username = request.getParameter("username");
|
||||
String password = request.getParameter("password");
|
||||
|
||||
// Build credentials object
|
||||
Credentials credentials = new Credentials();
|
||||
credentials.setSession(httpSession);
|
||||
credentials.setRequest(request);
|
||||
credentials.setUsername(username);
|
||||
credentials.setPassword(password);
|
||||
|
||||
// Get authorized context
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user