[eluser]missionsix[/eluser]
[quote author="Phil Sturgeon" date="1292865832"]application/third_party/mauth/libraries/mauth.php needs to be Mauth.php or it will fail on case sensitive OS'.
Why are you using a hook AND an extended controller? The two do basically the same thing here and its adding lots of hidden code. You then also extend the Hook system?
This user library uses a LOT of extra code in many places and will be a headache to implement and a headache to work with for now.
It has some real potential but needs to be tidied up a little. Removing the Template library will probably cause less confusion in the long run too. Views should just be simple examples.[/quote]
The hooks extension library allows me to provide hooks in parts of the authentication library where another developer might want to extend the system.
It is also needed to get the Mauth middleware running, as some parts of the code igniter system were not loaded yet at the default hook points. I found that the
pre_controller was too early, and
post_controller_constructor was too late in correctly restricting access based on URIs. Simply auto-loading the library also causes some dependencies to fail.
So when Mauth_Controller is extended, A hook is defined which includes the Mauth library, but it can also be denied to load based on restricted controllers in the <i>config/mauth.php</i> file.
You're right in that there is some stuff that is unneeded. I've thought about removing the template library before, Just haven't made the effort yet.