Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACCOUNTS_USERNAME_REGEX in config.py can't be overriden in invenio.cfg #471

Open
nidhal534 opened this issue Jan 8, 2024 · 1 comment
Open
Labels

Comments

@nidhal534
Copy link

I'm trying to change the username regex by overidding ACCOUNTS_USERNAME_REGEX in the invenio.cfg configuration file but it's not working . the default value is always applied .
accounts

@nidhal534 nidhal534 added the bug label Jan 8, 2024
@phette23
Copy link

phette23 commented Jul 2, 2024

You might want to check that you correctly rebuilt your instance if you modified your invenio.cfg to add ACCOUNTS_USERNAME_REGEX. I tested locally with a v11 services instance and the accounts regex worked. Our usernames do not match the InvenioRDM default regex so creating an instance failed while loading the users.yaml fixture but after editing invenio.cfg it completes.

Steps:

  • edit new ACCOUNTS_USERNAME_REGEX into invenio.cfg
  • invenio-cli destroy
  • invenio-cli install --dev (--dev not necessary)
  • invenio-cli services setup --no-demo-data <-- this failed previously
  • invenio-cli run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants