Skip to content
Permalink
Browse files

[#1288] http.path and Secure module

  • Loading branch information...
pepite committed May 10, 2012
1 parent 8831b0b commit 5f97b464530c39620f9e04c97fa4033e8d12b4a6
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/secure/app/controllers/Secure.java
@@ -15,7 +15,7 @@
static void checkAccess() throws Throwable {
// Authent
if(!session.contains("username")) {
flash.put("url", "GET".equals(request.method) ? request.url : "/"); // seems a good default
flash.put("url", "GET".equals(request.method) ? request.url : Play.ctxPath + "/"); // seems a good default
login();
}
// Checks
@@ -110,7 +110,7 @@ static void redirectToOriginalURL() throws Throwable {
Security.invoke("onAuthenticated");
String url = flash.get("url");
if(url == null) {
url = "/";
url = Play.ctxPath + "/";
}
redirect(url);
}

0 comments on commit 5f97b46

Please sign in to comment.
You can’t perform that action at this time.