diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 21:14:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 21:14:18 +0300 |
commit | 39cb2fdf01699eb5ac000c918f469c58dc75f7e8 (patch) | |
tree | 5de21a06dfe8b97c793f892032be45949aa482db /app/models/key.rb | |
parent | c17eb7c97062d25cdf1b44573e4c0241f52aa2fe (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 933c939fdf5..4a4e792c074 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -130,7 +130,7 @@ class Key < ApplicationRecord return unless public_key.valid? self.fingerprint_md5 = public_key.fingerprint - self.fingerprint_sha256 = public_key.fingerprint("SHA256").gsub("SHA256:", "") + self.fingerprint_sha256 = public_key.fingerprint_sha256.gsub("SHA256:", "") end def key_meets_restrictions |