Merge branch 'fix-impersonate-ui' into 'master'

Remove impersonate token from flash scope in UI

See merge request gitlab-org/gitlab-ce!17480
This commit is contained in:
Rémy Coutable 2018-03-05 17:06:58 +00:00
commit 2acb2fb348

View file

@ -9,7 +9,6 @@ class Admin::ImpersonationTokensController < Admin::ApplicationController
@impersonation_token = finder.build(impersonation_token_params)
if @impersonation_token.save
flash[:impersonation_token] = @impersonation_token.token
redirect_to admin_user_impersonation_tokens_path, notice: "A new impersonation token has been created."
else
set_index_vars