Enable Username and Password Menu

Description

Server Setup Information

  • Rocket chat Version 3.1.1.
  • Operating System: ubuntu
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • MongoDB Version: 4.0

I am new to rocket chat, I have a problem with the rocket chat configuration. I disabled the manual login from the login menu, and there is only an option that the user can log in via OAuth. But there is a problem with the oauth server and no one is able to login to rocket chat,

Is there any option that I can change manually to the code via ssh client to enable the manual login menu?

I am very thankful to you.

Kind Regards,
Adnan

I did that to myself, too. I’m going from memory, so I don’t have the exact details. I followed this link: https://rocket.chat/docs/administrator-guides/restoring-an-admin/
which got me to Mongo shell. There’s a collection for the installation’s settings (rocketchat_settings), and in that collection is a setting called something like “Admin_ShowLoginForm”. I used db.collection.find() to find it. That item’s value needs to be set back to true.

If you’re not familiar with Mongo’s shell commands (I’m not) there’s a handy quick reference here:
https://docs.mongodb.com/manual/reference/mongo-shell/

I’d have a look at the option of managing settings via environmental variables refer to the docs: https://rocket.chat/docs/administrator-guides/settings-via-env-vars/

The setting you need to update is Accounts_ShowFormLogin set it to true

@jason has already pointed out the docs for restoring an admin

Good luck

Oh, that’s much better than poking around in the db. I can’t speak for the OP, but you have my thanks.