Skip to content
Snippets Groups Projects
Unverified Commit 4f3c7db8 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Another fix for unverified accounts (#2609)

parent c24f3c21
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment