Config recovery per cli?


#1

Greetings,

I need a miracle… :wink:
I just successfully destroyed my cute debian rocket.chat server by disabling the login. Is there any way to roll back config by cli? Access via ssh is ok, just the web doesn’t show any login window.
Now wondering if there’s a config file or a db command to check/correct.
All I wanted to do is to disable registrations. ;(

Any hint appreciated, thanks for your ideas.

Just a test server, but a couple of hours in it anyway…

Hanspeter


#2

https://rocket.chat/docs/developer-guides/iframe-integration/authentication/#how-to-login-in-rocketchat-with-default-account-system-while-in-development

Right click browser window click inspect. Then go to console tab of that window. Paste that snippet in the console and swap username and password for your own and hit return. Should log you in.


#3

Thanks, Gleb.

Unfortunately, I deleted this VM 2 months ago and built a new one.
But hopefully, your hint shall help someone else doing the same stupidity… :slight_smile: