Question By
Solved

Auth error for disabling registration

Solved
brianh

Feb 27th, 2025 05:57 AM

Hi All,

I am trying to disable registration in my application however when I toggle the configuration in the Auth/Setup/Settings route I get the following error:

Unable to rewrite key "registration_enabled" in config, does it exist?

Any ideas what could be causing this and how I can correct it?

bobbyiliev

Feb 27th, 2025 06:21 AM

Best Answer

Hey Brian,

You will need to copy the missing keys from the settings file here into your own settings file in the config directory:

https://github.com/thedevdojo/auth/blob/main/config/devdojo/auth/settings.php#L8

That will fix the issue.

brianh

Feb 27th, 2025 06:26 AM

Hi Bobby,

Thanks for the quick save as always you legend!

Hope you are well.

Cheers, Brian.

Report
1
bobbyiliev

Feb 27th, 2025 11:00 AM

No worries at all! Happy to hear that it worked!

Report
1