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 {
|
} else {
|
||||||
String from = exchange.getRequestURI().toASCIIString();
|
String from = exchange.getRequestURI().toASCIIString();
|
||||||
response = Response.builder()
|
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")
|
.setHeader("Set-Cookie", "auth=expired; Path=/; Max-Age=1")
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user