Welcome Guest, Not a member yet? Register   Sign In
Shield setup issue
#1

I'm planning to use shield for user management

I'm aware that this add-on will also include settings library.

I don't want to use database handler for settings and want to use array instead. For this, I need to change the handler by extending the settings config manually.

Suggestions:
Extend the Settings config for app/Config same as Auth, AuthGroups, AuthTokens. Only Run the migrations if the handler is set to database.


Thank you.
Reply
#2

I would extended the settings library and add the modifications that you need.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(10-21-2024, 11:07 PM)InsiteFX Wrote: I would extended the settings library and add the modifications that you need.

Yes, as I said before, I need to manually extending it and change the handler from database to array.

Why don't just include with the shieldConfusedetup same as Auth, AuthGroups, AuthTokens? Because it is included. You can't choose to not install it.

As for Now
Run command shieldConfusedetup
Edit Auth.php if I need to change the table
Extend Settings.php config manually
Change the handler
Run migrations

Expecting
Run command shieldConfusedetup
Edit Auth.php if I need to change the table
Extend Settings.php config manually
Change the handler.
Run migrations (skip migrations for Settings if database handler is set)
Reply
#4

It seems they are trying to remove the enforcement of using the Settings library by Shield.
Here, we have a PR situation.

https://github.com/codeigniter4/shield/pull/1220
Reply




Theme © iAndrew 2016 - Forum software by © MyBB