Requesting Different Login Access

AI-generated summary

wendellverli is self-hosting their Discourse forum at discourse.fotografos.online and is locked out due to SendGrid blocking their admin email (equipe@fotografos.online), preventing login or password reset. They need to change the admin email to regain access. pfaffman suggests using the command line to create a new admin account via rake admin:create or manually update the email in Rails console, though warns it’s tricky. An easier workaround is to create a new admin, change the original email via the UI, then restore admin rights. omarfilip recommends checking SendGrid’s suppression list to unblock the email — similar to Mailgun’s feature — which may resolve the issue if the block was triggered by a spam report. The thread offers both technical CLI solutions and platform-specific email recovery options to restore admin access.

Currently my discourse forum is:
discourse.fotografos.online

However I’m having issues login in and / or reseting password since SendGrid blocked my email for some odd reason.

My email (same as the admin account) works perfectly otherwise:
equipe@fotografos.online

I’m the ADMIN and have another moderator as well - I need to regain access and change my admin email address to another one I have access to and I can then reset my pass - to regain access to my admin account…

Can someone help?

You’re self-hosted, so you just need to do something like this:

cd /var/discourse
./launcher enter app
rake admin:create

You can enter your email address there and change your password (or any user’s password. It doesn’t have to be an admin).

Changing the Email address is harder.

Something like

./launcher enter app
rails c
u=User.find_by_email('old@address.com')
ue=UserEmail.find_by(user_id: u.id)
ue.email_addrress='new@fun.com'
ue.save

Might work, but that’s more of a hint than a solution.

Easierr would be to create another admin account, log in with it, remove admin privs from that account, change the email address, then make it admin again.

I’m not sure if Sendgrid has this option, but in Mailgun’s admin dashboard you can find the addresses that are blocked/suppressed and remove them. This typically happens when a user accidentally marks email from Discourse as spam.

Perhaps this: