summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-08-07 20:17:10 -0700
committerelijah <elijah@riseup.net>2015-08-07 20:17:10 -0700
commit883b2eadb7b28756978c4009cb9f92e7177a9dba (patch)
tree5b4fa18a28c0534ca8a9f9b337a86d40f0e9eb31 /app/controllers
parent1493e0ca5e32bf25d9778e7326ea70d5ebfe74e6 (diff)
do not include random cruft in the common name of smtp client certificates
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/v1/smtp_certs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/v1/smtp_certs_controller.rb b/app/controllers/v1/smtp_certs_controller.rb
index fa53b26..75f524c 100644
--- a/app/controllers/v1/smtp_certs_controller.rb
+++ b/app/controllers/v1/smtp_certs_controller.rb
@@ -6,7 +6,7 @@ class V1::SmtpCertsController < ApiController
# POST /1/smtp_cert
def create
- @cert = ClientCertificate.new prefix: current_user.email_address
+ @cert = ClientCertificate.new common_name: current_user.email_address
@identity.register_cert(@cert)
@identity.save
render text: @cert.to_s, content_type: 'text/plain'