From 8fcb80a7d5c59e9f94d84116ee9cbed8a850906a Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Sat, 6 Feb 2021 15:40:21 -0500 Subject: [PATCH] Fixed issue causing 500 for unautheticated users (#2515) --- app/controllers/concerns/authenticator.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/concerns/authenticator.rb b/app/controllers/concerns/authenticator.rb index 8b1e27b3..16c330cc 100644 --- a/app/controllers/concerns/authenticator.rb +++ b/app/controllers/concerns/authenticator.rb @@ -58,7 +58,9 @@ module Authenticator redirect_to url else - redirect_to resend_path + session[:user_id] = nil + user.create_activation_token + redirect_to account_activation_path(digest: user.activation_digest) end end