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:
authorPatricio Cano <suprnova32@gmail.com>2016-09-07 19:55:54 +0300
committerPatricio Cano <suprnova32@gmail.com>2016-09-15 20:21:00 +0300
commit71aff7f6a3ab63f1395bfab6ea49f0175fe08167 (patch)
treefb5a26ecf10deeabdeb10f4950a43ee345086558 /lib/gitlab/lfs_token.rb
parentc144db2935f0f71c7f282a3015d126526bc16b57 (diff)
Use special characters for `lfs+deploy-key` to prevent a someone from creating a user with this username, and method name refactoring.
Diffstat (limited to 'lib/gitlab/lfs_token.rb')
-rw-r--r--lib/gitlab/lfs_token.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/lfs_token.rb b/lib/gitlab/lfs_token.rb
index d7db8017475..edf4dffc4c0 100644
--- a/lib/gitlab/lfs_token.rb
+++ b/lib/gitlab/lfs_token.rb
@@ -30,7 +30,7 @@ module Gitlab
end
def actor_name
- actor.is_a?(User) ? actor.username : "lfs-deploy-key-#{actor.id}"
+ actor.is_a?(User) ? actor.username : "lfs+deploy-key-#{actor.id}"
end
private