Remove impersonate token from flash scope

This commit is contained in:
julien MILLAU 2018-03-02 10:10:39 +00:00
parent f29dbaf55c
commit 30ef73afac
1 changed files with 0 additions and 1 deletions

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