diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ef6fc81a5d5e02aff566ae928252d983a215c4c0..4b3623aec0fe78927037e009e4a55fad3a8067e4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -34,7 +34,7 @@ class ApplicationController < ActionController::Base def reject_blocked! if current_user && current_user.blocked sign_out current_user - flash[:alert] = "Your account was blocked" + flash[:alert] = "Your account is blocked. Retry when an admin unblock it." redirect_to new_user_session_path end end @@ -42,7 +42,7 @@ class ApplicationController < ActionController::Base def after_sign_in_path_for resource if resource.is_a?(User) && resource.respond_to?(:blocked) && resource.blocked sign_out resource - flash[:alert] = "Your account was blocked" + flash[:alert] = "Your account is blocked. Retry when an admin unblock it." new_user_session_path else super