From eecdc6c9b3a53edc5e21d021e8f7eb8d2f5169c4 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Tue, 10 Oct 2017 06:10:43 +0300 Subject: [PATCH] Set flash message after signing out the user #599 --- app/controllers/registrar/base_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/registrar/base_controller.rb b/app/controllers/registrar/base_controller.rb index 2a0d0a7aa..90f2f5210 100644 --- a/app/controllers/registrar/base_controller.rb +++ b/app/controllers/registrar/base_controller.rb @@ -21,8 +21,9 @@ class Registrar return if allowed - flash[:alert] = t('registrar.authorization.ip_not_allowed', ip: request.ip) sign_out current_user + + flash[:alert] = t('registrar.authorization.ip_not_allowed', ip: request.ip) redirect_to registrar_login_url end