-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Overwrite users in environment configuration #2450
Comments
You will need to override |
Can you give me an example for that? |
Here is documentation from the old way: https://learn.getgrav.org/16/advanced/multisite-setup The new way is basically the same, but you can use schemes:
accounts:
paths:
- user/site/accounts |
Do I have to use the Multisite Setup? Current I use only the Automatic Environment Configuration https://learn.getgrav.org/16/advanced/environment-config |
You can just throw the |
I put the ./user/localhost/config/streams.yaml with
and I put the user.yaml to user/localhost/accounts but it didn't work |
Any news here. I believe I encountered the same problem here: I am currently reworking my multisite. During that I wanted to move some files to sub directories as cleanup. A brief structure
Both sites are mostly independent, but the users are the same. As the user stream is the site1/site2 directly, I wanted to overwrite the account stream. But as soon as I did that, Grav did not find any user and I got the redirected to create the first admin user. My current workaround is to set "user" as additional path in the user stream. I tried both ways. Setting it via config/streams.yaml and the "old way" as you called it in the setup.php. The Grav version is the current 1.7.RC20. But as I recall it also happened on 1.6. Dumping the locator shows the seemingly correct path in the schemes. |
To me this works: schemes:
account:
type: 'Stream'
force: true
prefixes:
'': 'user/accounts' |
I think I got it working now. The solution seems to be moving to the "new" method of setting the streams using the streams.yaml and the environment variables. Using the old method (returning an array in setup.php) seems not to be working correctly. As far as I debugged it, the method Hopefully this will help you. |
It "works" also from |
I need to change admin password in staging and prod.
Can I overwrite users in the environment configuration?
I have tried to put the users in user/localhost/accounts but it doesn't work.
The text was updated successfully, but these errors were encountered: