Account stuck on “We sent an activation mail to {new wrong email}"


(PastaGringo) #1

Hello everyone!

I have an issue really weird… I hope you can help me :slight_smile:

I created an account on a discourse forum from now few month ago with valid email.
I changed the email account with another but the new address mail was wrong… (I forgot one letter)

Now everytime I want to connect to the plazza, I can see :

“You’re almost done! We sent an activation mail to new wrong email. Please follow the instructions in the email to activate your account. If it doesn’t arrive, check your spam folder, or try to log in again to send another activation mail.”

Administrators enabled SSO from the root website and I can log in and see my profile without issue. I tried to change with the valid email but it doesn’t change anything, I’m still stuck to the previous message.

Do some of you have an idea regarding my issue? Is it possible to reset the email activation process ?

Thanks !


(Daniela) #2

Contact your admins via PM and give them the correct email. They can change your email via rails console.

cd /var/discourse
./launcher enter app
rails c
u = User.find_by_username("YOUR_USERNAME")
u.email = "YOUR_NEW_EMAIL_ADDRESS"
u.email_tokens.create(email: u.email)
u.activate
u.save!

No activation mail sent, you just have to login.


(PastaGringo) #3

I’m doing it ! Thanks @Trash