Commit 725b5bc1 authored by Muhammad Nuzaihan's avatar Muhammad Nuzaihan

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

parent 4854cfef
......@@ -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