A user's email from a forum is getting caught by a draconian spam filter. I set the password via rake admin:create
. When I do I can log in, but get the "You can't log in yet. We previously sent an activation email to you...." message.
On /admin/users the account appears to be activated. I tried de-activating and re-activating and that failed too.
Here's what I see at the rails console (with stuff redacted):
id: 48,
username: "susanb",
created_at: Tue, 21 Mar 2017 14:35:49 UTC +00:00,
updated_at: Thu, 18 May 2017 15:09:35 UTC +00:00,
name: "Susan Jones",
seen_notification_id: 2869,
last_posted_at: Tue, 21 Mar 2017 15:29:39 UTC +00:00,
email: "susan.jones@whatever.uk",
password_hash:
"hash-is-tasty",
salt: "with-salt",
active: true,
username_lower: "susanb",
last_seen_at: Thu, 18 May 2017 12:47:56 UTC +00:00,
admin: false,
last_emailed_at: Thu, 18 May 2017 14:53:16 UTC +00:00,
trust_level: 3,
approved: false,
approved_by_id: nil,
approved_at: nil,
previous_visit_at: Wed, 12 Apr 2017 09:29:09 UTC +00:00,
suspended_at: nil,
suspended_till: nil,
date_of_birth: nil,
views: 0,
flag_level: 0,
ip_address: #<IPAddr: IPv4:127.01.0.10/255.255.255.255>,
moderator: false,
blocked: false,
title: nil,
uploaded_avatar_id: 191,
locale: "",
primary_group_id: nil,
registration_ip_address: nil,
trust_level_locked: true,
staged: false,
first_seen_at: Tue, 21 Mar 2017 14:49:48 UTC +00:00>
I tried setting approved (though approval is not required) and setting registration_ip to 127.0.0.1
, but it still won't let them log in.