09-13-2016, 11:34 AM
So I do have a solution that I have coded for UserSpice 5. It is pretty simple, but requires changes in a couple of places. It is somewhat similar to what you're doing, but it does it for any secured page. If you try to access a secured page without being logged in, it sends you to login.php. After the login, it sends you to the secured page you tried to access.
If you would like this rolled into a patch, I can talk to @mudmin and see what he things (he is handling most of the 4.1.x and 4.2 stuff right now). I think at minimum it should be able to make it into 4.2.
If you would like this rolled into a patch, I can talk to @mudmin and see what he things (he is handling most of the 4.1.x and 4.2 stuff right now). I think at minimum it should be able to make it into 4.2.