diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-15 00:14:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-15 00:14:11 +0300 |
commit | ac99e71aa5ab65b4e0ceb816c25eb799ce76f9e1 (patch) | |
tree | d1c78de8595d66bc0c4f2ff8666f96844b769a86 /app/models/key.rb | |
parent | c55eb679a2181c6491c08fd85ae87cc753bcccb7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/key.rb')
-rw-r--r-- | app/models/key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index a478434538c..933c939fdf5 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -22,7 +22,7 @@ class Key < ApplicationRecord validates :key, presence: true, length: { maximum: 5000 }, - format: { with: /\A(ssh|ecdsa)-.*\Z/ } + format: { with: /\A(#{Gitlab::SSHPublicKey.supported_algorithms.join('|')})/ } validates :fingerprint, uniqueness: true, |