summaryrefslogtreecommitdiff
path: root/certs/app
diff options
context:
space:
mode:
Diffstat (limited to 'certs/app')
-rw-r--r--certs/app/models/client_certificate.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/certs/app/models/client_certificate.rb b/certs/app/models/client_certificate.rb
index 3a82d1a..1bc34c6 100644
--- a/certs/app/models/client_certificate.rb
+++ b/certs/app/models/client_certificate.rb
@@ -66,11 +66,8 @@ class ClientCertificate
end
def common_name(for_free_cert = false)
- if for_free_cert
- random_common_name + ' ' + APP_CONFIG[:free_cert_postfix]
- else
- random_common_name
- end
+ random_common_name +
+ (for_free_cert ? APP_CONFIG[:free_cert_postfix] : '')
end
#