How to disable plugin when unable to log in?
You can disable plugins by adding their handles to an array disabledPlugins in your config/general.php file:

&lt;?php
    '*' =&gt; [
        'isSystemLive' =&gt; true,
        'disabledPlugins' =&gt; [
            'redactor',
            'some-plugin',
            ...
        ],
        ...
    ],