mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
fix broken build
This commit is contained in:
@@ -83,7 +83,6 @@ import javax.ws.rs.core.Response;
|
|||||||
import javax.xml.bind.annotation.XmlAccessType;
|
import javax.xml.bind.annotation.XmlAccessType;
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
import javax.xml.bind.annotation.XmlAccessorType;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import sonia.scm.security.XsrfCookies;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -267,12 +266,8 @@ public class AuthenticationResource
|
|||||||
@GET
|
@GET
|
||||||
@Path("logout")
|
@Path("logout")
|
||||||
@TypeHint(ScmState.class)
|
@TypeHint(ScmState.class)
|
||||||
public Response logout(@Context HttpServletRequest request,
|
public Response logout(@Context HttpServletRequest request, @Context HttpServletResponse response)
|
||||||
@Context HttpServletResponse response)
|
|
||||||
{
|
{
|
||||||
// remove xsrf token
|
|
||||||
XsrfCookies.remove(request, response);
|
|
||||||
|
|
||||||
Subject subject = SecurityUtils.getSubject();
|
Subject subject = SecurityUtils.getSubject();
|
||||||
|
|
||||||
subject.logout();
|
subject.logout();
|
||||||
|
|||||||
Reference in New Issue
Block a user