Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2018-02-16 19:32:08 +0300
committerRubén Dávila <ruben@gitlab.com>2018-02-16 19:32:08 +0300
commit7044a3a54a4ee4dd45af111727df2ff512db1a22 (patch)
tree26f5fbbc8d27688f6aa5f6dec4aa6a92aee98d56 /lib
parent75fd83245450216b0aeec9993455802764eaf87b (diff)
Validate SSH keys through the sshkey gem
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ssh_public_key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ssh_public_key.rb b/lib/gitlab/ssh_public_key.rb
index 545e7c74f7e..6f63ea91ae8 100644
--- a/lib/gitlab/ssh_public_key.rb
+++ b/lib/gitlab/ssh_public_key.rb
@@ -53,7 +53,7 @@ module Gitlab
end
def valid?
- key.present? && bits && technology.supported_sizes.include?(bits)
+ SSHKey.valid_ssh_public_key?(key_text)
end
def type