Code to logout deactivated users:
if current_user&.deactivated_at
email = current_user.email
sign_out current_user
redirect_to root_path, alert: "Your account has been deactivated. Account: #{email} "
end
Code to logout deactivated users:
if current_user&.deactivated_at
email = current_user.email
sign_out current_user
redirect_to root_path, alert: "Your account has been deactivated. Account: #{email} "
end
For further actions, you may consider blocking this person and/or reporting abuse
Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.
Adrian Machado -
Adrian Machado -
Adrian Machado -
Mike Young -
Top comments (0)