summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Nuzaihan <muhammad@taqisystems.com>2018-07-04 17:48:31 +0800
committerMuhammad Nuzaihan <muhammad@taqisystems.com>2018-07-04 17:48:31 +0800
commit725b5bc1dea7551214b596f489f1dfec524ff912 (patch)
tree18a4a29d2c48b613ad9b0081de7d5d8e7df240b6
parent4854cfef98d7158bea72b0c29363bf05044e5b67 (diff)
downloadgitlab-ce-725b5bc1dea7551214b596f489f1dfec524ff912.tar.gz
use redirect instead of render to avoid creating keys when refresh - resolves #47942
-rw-r--r--app/controllers/projects/settings/repository_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/settings/repository_controller.rb b/app/controllers/projects/settings/repository_controller.rb
index 4697af4f26a..9cb2390700c 100644
--- a/app/controllers/projects/settings/repository_controller.rb
+++ b/app/controllers/projects/settings/repository_controller.rb
@@ -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