We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43cad71 + 5afb16e commit 05af565Copy full SHA for 05af565
app/models/key.rb
@@ -10,6 +10,7 @@ class Key < ActiveRecord::Base
10
11
validates :key,
12
presence: true,
13
+ :format => { :with => /ssh-.{3} / },
14
length: { within: 0..5000 }
15
16
before_save :set_identifier
spec/factories.rb
@@ -77,7 +77,7 @@ def self.new(type, *args)
77
title
78
key do
79
"""
80
- AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
+ ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
81
596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4
82
soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=
83
0 commit comments