I'm using zfcUser
and I was wondering if its possible to disable the default routes, such as zfcUser/login
, zfcUser/register
, etc because I do not want to expose them.
I looked at the zfcuser.global.php
but there seems to be no such option?
Thanks
You can simply override the configuration by setting a null controller or an unmatchable routing configuration.
Solution 1: override the
zfcuser
controller invokable:Solution 2: overriding routing configuration by using your own route config (hacky, discouraged):