Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package controllers;
 
 
 public class AuthenticationController {
     
    public Response notauthenticated() {
        return Response.withOk().andEmptyBody();
    }
    
    public Response login(Authentication authentication) {
        authentication.login("user"false);
        return Response.withOk().andEmptyBody();
    }
    
    public Response logout(Authentication authentication) {
        authentication.logout();
        return Response.withOk().andEmptyBody();
    }
New to GrepCode? Check out our FAQ X