mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
parent
5749f6e7c2
commit
fa7827d956
@ -129,7 +129,7 @@ public class RequestHandler implements HttpHandler {
|
||||
} else {
|
||||
String from = exchange.getRequestURI().toASCIIString();
|
||||
response = Response.builder()
|
||||
.redirectTo(StringUtils.startsWithAny(from, "/auth/", "/login") ? "/login" : "/login?from=" + from)
|
||||
.redirectTo(StringUtils.startsWithAny(from, "/auth/", "/login") ? "/login" : "/login?from=." + from)
|
||||
.setHeader("Set-Cookie", "auth=expired; Path=/; Max-Age=1")
|
||||
.build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user