From 54ec44742b06fcfa56742d773725e6721c42e381 Mon Sep 17 00:00:00 2001 From: Iraline Date: Thu, 5 May 2022 14:52:18 -0300 Subject: [PATCH] pronto run --- app/controllers/users/confirmations_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users/confirmations_controller.rb b/app/controllers/users/confirmations_controller.rb index e55308317..d7e3f7593 100644 --- a/app/controllers/users/confirmations_controller.rb +++ b/app/controllers/users/confirmations_controller.rb @@ -49,13 +49,13 @@ class Users::ConfirmationsController < Devise::ConfirmationsController elsif resource.errors.empty? set_official_position if resource.has_official_email? - if resource.confirmed_at + if resource.confirmed_at message = :already_confirmed else resource.confirm # Last change: confirm happens here for people with passwords instead of af the top of the show action message = :confirmed end - + set_flash_message(:notice, message) if is_flashing_format? respond_with_navigational(resource) { redirect_to after_confirmation_path_for(resource_name, resource) } else