diff --git a/main.rb b/main.rb index d6bf13e..a561e19 100644 --- a/main.rb +++ b/main.rb @@ -89,7 +89,7 @@ def auth end post '/auth' do - set_cookie(Blog.admin_cookie_key, Blog.admin_cookie_value) if params[:password] == Blog.admin_password + response.set_cookie(Blog.admin_cookie_key, Blog.admin_cookie_value) if params[:password] == Blog.admin_password redirect '/' end