Richie
(Richie Rich)
May 7, 2024, 2:38pm
1
When deleting a user we have the option to also block the email address from signing up / creating an account again in the future:
The list of email addresses which are blocked can be found at https://example.com/admin/logs/screened_emails
Where / how do I manually add an email address to this list?
I don’t think this is possible still using the UI.
There’s this tip for doing it through the rails console, though I haven’t tested it to check it’s up-to-date. Always worth taking a backup first as well when adjusting things in the rails console.
It looks like you can do it from the console. I just tested the following:
./launcher enter app
rails c
ScreenedEmail.create(email: "problem@email.com")
The screened email will show up in your admin interface after that. You can remove it from there if ever necessary.
2 Likes
Richie
(Richie Rich)
May 7, 2024, 5:03pm
3
Confirmed working on latest
:
[1] pry(main)> **ScreenedEmail**.create(email: **"**problem@email.com**"**)
=> #<ScreenedEmail:0x00007f74b3200c90
id: **93**,
email: **"**problem@email.com**"** ,
action_type: **1**,
match_count: **0**,
last_match_at: **nil**,
created_at: **Tue**, **07** **May** **2024** **17**:**01**:**10.150557112** **UTC** **+00**:**00**,
updated_at: **Tue**, **07** **May** **2024** **17**:**01**:**10.150557112** **UTC** **+00**:**00**,
ip_address: **nil**>
[2] pry(main)>
And in the UI:
Thanks @JammyDodger
1 Like
system
(system)
Closed
June 6, 2024, 5:03pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.