Greetings,
I’ve modified the event user.session.pre.post to block empty apikeys and others but my own created apps. The problem is that now i cant even login to DF’s admin console. Is there a way to avoid the pre event or access to the BD and delete it?
Another question: is there a way to block the empty apikeys or those not registered in my DF instance?
Thanks in advance,
Lucho
Hello, LuchoRod.
I believe that you can access the database directly, and update the [DREAMFACTORY_INSTANCE].[dbo].[event_script] table and set the appropriate event(s) to be disabled:
UPDATE [DREAMFACTORY_INSTANCE].[dbo].[event_script]
SET [is_active] = 0
WHERE [name] = 'NAME_OF_YOUR_EVENT_GOES_HERE]
You are likely going to need to flush the cache, which might work from the terminal/command line:
php artisan config:clear
php artisan cache:clear
Let me know if that works for you or not, but it should if the system is designed correctly.
Thanks,
Paul
PS – Make sure to change the SQL Script above as necessary to reflect your SQL Instance.
1 Like