Open derekisbusy opened 9 years ago
Sure go ahead. I have pushed updates for social auth in #40.
Thinking ahead... this now needs some test cases (codeception or similar) for ensuring changes do not break.
The social auth is broke right now.
Okay never mind I see you changed it.
Yes social auth has been redone by me. It should work - need to add all the Auth clients (have done for Google, Facebook and Twitter).
Following needs to be noted and done:
array_replace_recursive
would adversely impact many code areas including defaults that are used in views, widgets as well. Need to be really careful in doing this.tests
to test each of these. I can help add and augment the same as well.
Instead of using array_replace_recursive to set all the defaults every time the module loads should switch the code to use the
Module::getSetting()
and related functions ie.getRegistrationSetting()
So in the controller you would use
This way the defaults are only loaded when needed.
Or we could remove the getSocialSettings and variable from the module and make components out of all the settings and attach them to the user component.
This way components and defaults are only set when needed.