summaryrefslogtreecommitdiff
path: root/certs/app/controllers
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-01-31 10:26:33 -0800
committerazul <azul@riseup.net>2013-01-31 10:26:33 -0800
commit1bef299f60d742abb3a1b1db7fb6e6021f11ece2 (patch)
treeb449fea406e45de9e4cfd9462c4fc5cb01c74cee /certs/app/controllers
parentdac578781baf73a006cc78e29588dd1f6fdc0fd3 (diff)
parent8d9c2e90b77d417f9715c95de91c629e80ca6603 (diff)
Merge pull request #22 from leapcode/feature/merge_leap_ca
merge leap ca
Diffstat (limited to 'certs/app/controllers')
-rw-r--r--certs/app/controllers/certs_controller.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/certs/app/controllers/certs_controller.rb b/certs/app/controllers/certs_controller.rb
index d81aea0..6db270c 100644
--- a/certs/app/controllers/certs_controller.rb
+++ b/certs/app/controllers/certs_controller.rb
@@ -4,11 +4,8 @@ class CertsController < ApplicationController
# GET /cert
def show
- @cert = LeapCA::Cert.pick_from_pool
+ @cert = ClientCertificate.new
render :text => @cert.key + @cert.cert, :content_type => 'text/plain'
- rescue RECORD_NOT_FOUND
- flash[:error] = t(:cert_pool_empty)
- redirect_to root_path
end
end