diff options
author | Rubén Dávila <ruben@gitlab.com> | 2018-02-16 19:32:08 +0300 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2018-02-16 19:32:08 +0300 |
commit | 7044a3a54a4ee4dd45af111727df2ff512db1a22 (patch) | |
tree | 26f5fbbc8d27688f6aa5f6dec4aa6a92aee98d56 /lib | |
parent | 75fd83245450216b0aeec9993455802764eaf87b (diff) |
Validate SSH keys through the sshkey gem
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ssh_public_key.rb | 2 |
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 |