MFE login in tutor 17.0.5

Hi everyone!

I hope you are having a good start to the week.

I’ve been stuck on something and I’m hoping someone can help me figure it out.

I am using open edx and tutor v17.0.5, for certain reasons, I want to remove the registration section in the Authn MFE.

Does anyone have any idea how I can remove it?

Thanks in advance.

Hi how are you GonzaloZupo
If you can comment out the log in the file
/frontend-app-authn/src/common-components/Logistration.jsx

delete or comment out the line:
<Tab title={formatMessage(messages[‘logistration.register’])} eventKey={REGISTER_PAGE} />
and also in the line
<Tab title={tabTitle} eventKey={selectedPage === LOGIN_PAGE ? LOGIN_PAGE : REGISTER_PAGE} />

delete where it says REGISTER_PAGE

<Tab title={tabTitle} eventKey={selectedPage === LOGIN_PAGE } />

and you would have to disable it in the header as well, which you could put in the
class “register-btn btn” style: display: none

@GonzaloZupo
You can try this plugin.

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_items(
[
(
"common-env-features",
"""
ALLOW_PUBLIC_ACCOUNT_CREATION: false
"""
),
(
"openedx-lms-production-settings",
"""
MFE_CONFIG["ALLOW_PUBLIC_ACCOUNT_CREATION"] = False
"""
)
]
)

Refer to this doc for how to create a tutor plugin.

2 Likes

Hello !

Thank you very much, the plugin worked perfectly!

I am really grateful!