summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorKrasimir Angelov <kangelov@gitlab.com>2019-07-02 18:56:48 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-07-02 18:56:48 +0000
commitd745ff0431130a760a7a59899c26410dc887f77a (patch)
tree8f12c60eaad6a5eb897be9cd03d048e971218511 /app/controllers
parent4b050fc283fcc0f703d219a54dab4a02f10e475d (diff)
downloadgitlab-ce-d745ff0431130a760a7a59899c26410dc887f77a.tar.gz
Add username to deploy tokens
This new attribute is optional and used when set instead of the default format `gitlab+deploy-token-#{id}`. Empty usernames will be saved as null in the database. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/50228.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/settings/repository_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/settings/repository_controller.rb b/app/controllers/projects/settings/repository_controller.rb
index ac3004d069f..bc2ce15286f 100644
--- a/app/controllers/projects/settings/repository_controller.rb
+++ b/app/controllers/projects/settings/repository_controller.rb
@@ -99,7 +99,7 @@ module Projects
end
def deploy_token_params
- params.require(:deploy_token).permit(:name, :expires_at, :read_repository, :read_registry)
+ params.require(:deploy_token).permit(:name, :expires_at, :read_repository, :read_registry, :username)
end
end
end