lib/castronaut/presenters/logout.rb in relevance-castronaut-0.4.1 vs lib/castronaut/presenters/logout.rb in relevance-castronaut-0.4.2
- old
+ new
@@ -32,9 +32,10 @@
def represent!
ticket_granting_ticket = Castronaut::Models::TicketGrantingTicket.find_by_ticket(ticket_granting_ticket_cookie)
cookies.delete 'tgt'
+ controller.delete_cookie('tgt')
if ticket_granting_ticket
Castronaut::Models::ProxyGrantingTicket.clean_up_proxy_granting_tickets_for(ticket_granting_ticket.username)
ticket_granting_ticket.destroy
end