Allow login to a read-only site

Anyone reading this topic, I got a solution in another similar topic here.

In case we’re locked out, we can run this command in rails console to disable the ‘read-only’ mode:

Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)

3 Likes