inveniosoftware / invenio-accounts

Invenio module for managing user accounts.
https://invenio-accounts.readthedocs.io
MIT License
5 stars 67 forks source link

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

Open nidhal534 opened 6 months ago

nidhal534 commented 6 months ago

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
phette23 commented 3 weeks ago

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: