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
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/keys_finder.rb')
-rw-r--r--app/finders/keys_finder.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/finders/keys_finder.rb b/app/finders/keys_finder.rb
index 9c357e12205..4b5cc02f012 100644
--- a/app/finders/keys_finder.rb
+++ b/app/finders/keys_finder.rb
@@ -52,11 +52,11 @@ class KeysFinder
end
def valid_fingerprint_param?
- if fingerprint_type == "sha256"
- Base64.decode64(fingerprint).length == 32
- else
- fingerprint =~ /^(\h{2}:){15}\h{2}/
- end
+ return Base64.decode64(fingerprint).length == 32 if fingerprint_type == "sha256"
+
+ return false if Gitlab::FIPS.enabled?
+
+ fingerprint =~ /^(\h{2}:){15}\h{2}/
end
def fingerprint_query