From c32c0dd749cf8c34f20bb4e574165753fcd8660b Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 21 May 2016 14:04:38 -0400 Subject: remove debugging and comment cleanup --- src/guff.cr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/guff.cr b/src/guff.cr index d641032..783c98a 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -254,7 +254,6 @@ module Guff def create_token remove_expired_tokens - p @cache # generate and cache new token r = SecureRandom.hex(16) @@ -280,6 +279,9 @@ module Guff private def remove_expired_tokens now = Time.now.epoch + # FIXME: limit the size of the cache + # to prevent insane memory use + # remove expired entries @cache.delete_if do |key, val| val < now @@ -566,7 +568,6 @@ module Guff end end - # TODO: check referrer, add x-frame-options class AdminPageHandler < AuthenticatedHandler def initialize(context : Context) super(context, %w{admin editor}) -- cgit v1.2.3