Commit 3df32ac1 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'deploy-tokens' into 'master'

use redirect instead of render to avoid creating keys when refresh - resolves #47942

Closes #47942

See merge request gitlab-org/gitlab-ce!20363
parents dd1295a3 725b5bc1
......@@ -12,10 +12,10 @@ module Projects
@new_deploy_token = DeployTokens::CreateService.new(@project, current_user, deploy_token_params).execute
if @new_deploy_token.persisted?
flash.now[:notice] = s_('DeployTokens|Your new project deploy token has been created.')
flash[:notice] = s_('DeployTokens|Your new project deploy token has been created.')
end
render_show
redirect_to action: :show
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment