From 4f3c7db82a90a7b8166d78624da4138d9609da14 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Wed, 24 Mar 2021 17:52:08 -0400 Subject: [PATCH] Another fix for unverified accounts (#2609) --- app/controllers/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index e10ab4e9..3c748eba 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -89,7 +89,7 @@ class SessionsController < ApplicationController return redirect_to(root_path, alert: I18n.t("invalid_login_method")) unless user.greenlight_account? # Check that the user has verified their account unless user.activated? - user.create_activation_token + user.create_activation_token if user.activation_digest.nil? return redirect_to(account_activation_path(digest: user.activation_digest)) end end