diff options
Diffstat (limited to 'lib/authenticated_system.rb')
-rw-r--r-- | lib/authenticated_system.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb index ae18f0d..9be68d1 100644 --- a/lib/authenticated_system.rb +++ b/lib/authenticated_system.rb @@ -15,21 +15,9 @@ module AuthenticatedSystem # Store the given user in the session. def current_user=(new_user) session[:user_id] = (new_user.nil? || new_user.is_a?(Symbol)) ? nil : new_user.id - set_varnish_auth_cookie @current_user = new_user end - def set_varnish_auth_cookie - cookies[:authenticated] = { - :value => "true", - :domain => ".#{GitoriousConfig['gitorious_host']}", - :expires => 3.weeks.from_now, - } - end - - def clear_varnish_auth_cookie - cookies.delete :authenticated, :domain => ".#{GitoriousConfig['gitorious_host']}" - end # Check if the user is authorized # |