Overwrite or new plugin

I have extended the default login plugin to include LDAP support for authorization via Active Directory.

However If ever I update the plugin, my code will be gone. Ideally, i should make a new plugin that overrides the other, but I’m not sure how to do it to ensure future compatibility.

is there a ‘correct’ way to override the functions of one plugin with another?

If you feel that this is something that could be ‘added’ to the current login plugin, perhaps you could add support to the regular plugin with some configuration options to enable/configure it.

Just submit a pull request on that project in Github.

That’s probably the best idea. I’ll clean up the code and make a request.